Skip to content

Commit

Permalink
fix: debian frontend on apt install
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Aug 2, 2024
1 parent 2b4b6d1 commit f5bb39d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions scripts/server_setup.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit f5bb39d

Please sign in to comment.