From 992b0ca2db07c79d6dfba7209357ee81c104fd43 Mon Sep 17 00:00:00 2001 From: bipproduction Date: Mon, 6 Oct 2025 17:42:17 +0800 Subject: [PATCH] tambahan --- bin/g3n.ts | 6 ++++-- bin/src/compose.ts | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/g3n.ts b/bin/g3n.ts index 73cc3fd..6cf4794 100755 --- a/bin/g3n.ts +++ b/bin/g3n.ts @@ -188,8 +188,10 @@ function handleCompose(name?: string): void { return; } - if(args.port.length !== 2) { - console.error("❌ Compose port must be 2 digits"); + const _port = args.port.toString().padStart(2, "0"); + + if(_port.length !== 2) { + console.error(`❌ Compose port must be 2 digits [00-99] , ${args.port}`); return; } diff --git a/bin/src/compose.ts b/bin/src/compose.ts index 579d4ef..a007dad 100644 --- a/bin/src/compose.ts +++ b/bin/src/compose.ts @@ -86,7 +86,7 @@ echo "Generating directory..." mkdir -p data data/app data/postgres data/frpc data/ssh echo "Generating authorized_keys..." -cat << EOF > data/ssh/authorized_keys +cat > data/ssh/authorized_keys <