maybe fix docker?

This commit is contained in:
Lee
2023-07-04 16:46:10 +01:00
parent 57eda7d007
commit 16f920d0b4
3 changed files with 22 additions and 5 deletions

13
docker/start.sh Normal file
View File

@ -0,0 +1,13 @@
UPLOAD_SCRIPT="upload.php"
echo "Checking if $UPLOAD_SCRIPT exists in /var/www/html"
if [ -f "$UPLOAD_SCRIPT" ]; then
echo "$FILE exists, not copying"
else
cp /var/www/html/$UPLOAD_SCRIPT $UPLOAD_SCRIPT
echo "$UPLOAD_SCRIPT copied to /var/www/html/$UPLOAD_SCRIPT"
fi
# Start Nginx
echo "Starting Nginx"
nginx -g "daemon off;"