From 3e4fdc63cbff0bbe800b055538ad2b13d8eeb80c Mon Sep 17 00:00:00 2001 From: William Miceli <1-WilliamMiceli@git.williammiceli.systems> Date: Tue, 20 Aug 2019 10:32:48 -0400 Subject: [PATCH] Changed wording for STDOUT and to have it list any items in the web directory --- entrypoint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 11a6b85..38b341e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,12 +5,13 @@ echo "[ INFO ] Checking for any existing files" if [ -z `ls -A /var/www/` ] then echo "[ INFO ] No pre-existing files found (New instance)" - echo "[ INFO ] Copying default files into the /var/www/user directory" + echo "[ INFO ] Extracting files into /var/www/" tar xz -f /GRAV.tar.gz -C / - echo "[ INFO ] Default files have been copied successfully" + echo "[ INFO ] Default files have been extracted successfully" else - echo "[ INFO ] Pre-existing files found (Existing instance)" - echo "[ INFO ] Not taking any action" + echo "[ INFO ] Root web directory not empty (Pre-existing instance):" + ls -A /var/www/ + echo "[ INFO ] Not extracting new files from archive" fi echo "[ INFO ] Recursively setting default nginx:nginx permissions on web directory"