Files
sharex-php-uploader/docker/start.sh

15 lines
369 B
Bash
Raw Normal View History

2023-07-04 16:51:11 +01:00
echo "Checking if upload script exists in /var/www/html"
if [ -f "/var/www/html/upload.php" ]; then
2023-07-04 16:48:37 +01:00
echo "Upload script was found, ignoring copy."
2023-07-04 16:46:10 +01:00
else
2023-07-04 16:51:11 +01:00
cp /tmp/upload.php /var/www/html
2023-07-04 16:48:37 +01:00
echo "Upload script was not found, copying it."
2023-07-04 16:46:10 +01:00
fi
2023-07-04 17:15:53 +01:00
# Start php dep
echo "Starting PHP"
service php8.1-fpm start
2023-07-04 16:46:10 +01:00
# Start Nginx
echo "Starting Nginx"
nginx -g "daemon off;"