sharex-php-uploader/docker/start.sh
2023-07-04 16:51:11 +01:00

11 lines
307 B
Bash

echo "Checking if upload script exists in /var/www/html"
if [ -f "/var/www/html/upload.php" ]; then
echo "Upload script was found, ignoring copy."
else
cp /tmp/upload.php /var/www/html
echo "Upload script was not found, copying it."
fi
# Start Nginx
echo "Starting Nginx"
nginx -g "daemon off;"