sharex-php-uploader/docker/start.sh

13 lines
340 B
Bash
Raw Normal View History

2023-07-04 15:46:10 +00:00
UPLOAD_SCRIPT="upload.php"
echo "Checking if $UPLOAD_SCRIPT exists in /var/www/html"
if [ -f "$UPLOAD_SCRIPT" ]; then
2023-07-04 15:48:37 +00:00
echo "Upload script was found, ignoring copy."
2023-07-04 15:46:10 +00:00
else
cp /var/www/html/$UPLOAD_SCRIPT $UPLOAD_SCRIPT
2023-07-04 15:48:37 +00:00
echo "Upload script was not found, copying it."
2023-07-04 15:46:10 +00:00
fi
# Start Nginx
echo "Starting Nginx"
nginx -g "daemon off;"