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