From 0054cf076dacc73d8f7d6f00ceacb25bd00e6e1c Mon Sep 17 00:00:00 2001 From: Fascinated Date: Tue, 4 Jul 2023 16:48:37 +0100 Subject: [PATCH] cleanup messages --- Dockerfile | 1 - docker/start.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d86c7f..2a587a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ apt install nginx php-fpm php-gd -y # Set up nginx COPY ./docker/nginx.conf /etc/nginx/nginx.conf -RUN mkdir -p /var/www/html # Setup scripts COPY ./docker/start.sh /start.sh diff --git a/docker/start.sh b/docker/start.sh index 7f56d52..d314456 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -2,10 +2,10 @@ UPLOAD_SCRIPT="upload.php" echo "Checking if $UPLOAD_SCRIPT exists in /var/www/html" if [ -f "$UPLOAD_SCRIPT" ]; then - echo "$FILE exists, not copying" + echo "Upload script was found, ignoring copy." else cp /var/www/html/$UPLOAD_SCRIPT $UPLOAD_SCRIPT - echo "$UPLOAD_SCRIPT copied to /var/www/html/$UPLOAD_SCRIPT" + echo "Upload script was not found, copying it." fi # Start Nginx