From 9677c0cbec800959c1196aafddb723ef10c3959e Mon Sep 17 00:00:00 2001 From: tycrek Date: Wed, 14 Jul 2021 14:24:48 -0600 Subject: [PATCH] Added confirmation & logs to docker install scripts --- install/docker-linux.sh | 15 +++++++++++---- install/docker-windows.bat | 7 +++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/install/docker-linux.sh b/install/docker-linux.sh index 3e3cdc2..3200460 100644 --- a/install/docker-linux.sh +++ b/install/docker-linux.sh @@ -17,16 +17,23 @@ do fi done +# Wait for user to confirm +echo "Continuing will run docker-compose. Continue? (Press Ctrl+C to abort)" +read -n 1 -s -r -p "Press any key to continue..." + echo Running setup... # docker-compose up -d -docker-compose up -d +docker-compose up -d && \ # Run setup within the container -docker-compose exec ass npm run setup +docker-compose exec ass npm run setup && \ # Restart the container when complete -docker-compose restart +docker-compose restart && \ # Open the logs to ensure it is running -docker-compose logs -f --tail=50 --no-log-prefix ass +docker-compose logs -f --tail=50 --no-log-prefix ass && \ + +# Done! +echo "ass-docker for Linux installed!" diff --git a/install/docker-windows.bat b/install/docker-windows.bat index 548dc59..8d134e3 100644 --- a/install/docker-windows.bat +++ b/install/docker-windows.bat @@ -13,6 +13,10 @@ if not exist "./config.json" echo. >> "./config.json" if not exist "./auth.json" echo. >> "./auth.json" if not exist "./data.json" echo. >> "./data.json" +REM Wait for user to confirm +ECHO Continuing will run docker-compose. Continue? (Press Ctrl+C to abort) +PAUSE + ECHO Running setup... REM docker-compose up -d @@ -26,3 +30,6 @@ docker-compose restart REM Open the logs to ensure it is running docker-compose logs -f --tail=50 --no-log-prefix ass + +REM Done! +echo ass-docker for Windows installed!