tambahan
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 <<EOF
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDfXPd7ab21qdKtKKdv2bLxIa9hEqq2oLLj7c3i/rN2f bip@bips-Air
|
||||
EOF
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "g3n",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.17",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"g3n": "./bin/g3n.ts"
|
||||
|
||||
Reference in New Issue
Block a user