From f5bb39d69873600dedc4ebd54ad6cbfec3b25893 Mon Sep 17 00:00:00 2001 From: Eugene Michkov Date: Fri, 2 Aug 2024 12:54:53 +0300 Subject: [PATCH] fix: debian frontend on apt install --- scripts/server_setup.sh | 1 + src/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/server_setup.sh b/scripts/server_setup.sh index 1746ed2..21e67e4 100644 --- a/scripts/server_setup.sh +++ b/scripts/server_setup.sh @@ -1,4 +1,5 @@ # Pre-requisite: .env file should be present in the root directory +export DEBIAN_FRONTEND=noninteractive apt update -y && apt install -y wireguard postgresql source .env ufw allow $WIREGUARD_PORT diff --git a/src/index.ts b/src/index.ts index 1f05afb..c284143 100644 --- a/src/index.ts +++ b/src/index.ts @@ -108,14 +108,14 @@ async function main() { chillBeforeFullSetup.start( "Relax and chill before server will be fully setup" ); - await new Promise((resolve) => setTimeout(resolve, 40000)); + await new Promise((resolve) => setTimeout(resolve, 90000)); chillBeforeFullSetup.stop("Server ready"); let startServer = await spinner(); startServer.start("Starting server"); - await run(`scp env root@${ip}:~/.env -scp -r scripts/ root@${ip}:~/scripts/ -ssh root@${ip} ". ~/scripts/server_setup.sh" + await run(`scp -o StrictHostKeyChecking=no env root@${ip}:~/.env +scp -o StrictHostKeyChecking=no -r scripts/ root@${ip}:~/scripts/ +ssh -o StrictHostKeyChecking=no root@${ip} ". ~/scripts/server_setup.sh" rm env`); startServer.stop("Server started");