Fixed some log messages
This commit is contained in:
@@ -9,13 +9,13 @@ directory_empty() {
|
|||||||
echo "[ INFO ] Checking for any existing user files"
|
echo "[ INFO ] Checking for any existing user files"
|
||||||
if directory_empty "var/www/user"
|
if directory_empty "var/www/user"
|
||||||
then
|
then
|
||||||
echo "[ INFO ] No pre-existing files found (New instance)"
|
echo "[ INFO ] No pre-existing user files found (New instance)"
|
||||||
echo "[ INFO ] Extracting files into /var/www/"
|
echo "[ INFO ] Extracting all Grav files into /var/www/"
|
||||||
tar xz -f /GRAV.tar.gz -C /
|
tar xz -f /GRAV.tar.gz -C /
|
||||||
echo "[ INFO ] Default files have been extracted successfully"
|
echo "[ INFO ] Default files have been extracted successfully"
|
||||||
else
|
else
|
||||||
echo "[ INFO ] Root web directory not empty (Pre-existing instance):"
|
echo "[ INFO ] 'user' directory not empty (Pre-existing instance):"
|
||||||
ls -A /var/www/
|
ls -A /var/www/user/
|
||||||
echo "[ INFO ] Not extracting new files from archive"
|
echo "[ INFO ] Not extracting new files from archive"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -29,4 +29,4 @@ echo "[ INFO ] Starting cron"
|
|||||||
crond # Background
|
crond # Background
|
||||||
|
|
||||||
echo "[ INFO ] Starting nginx"
|
echo "[ INFO ] Starting nginx"
|
||||||
nginx -g "daemon off;" # Foreground
|
nginx -g "daemon off;" # Foreground
|
||||||
|
|||||||
Reference in New Issue
Block a user