sharex-php-uploader/docker/start.sh

15 lines
369 B
Bash
Raw Normal View History

2023-07-04 15:51:11 +00:00
echo "Checking if upload script exists in /var/www/html"
if [ -f "/var/www/html/upload.php" ]; 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
2023-07-04 15:51:11 +00:00
cp /tmp/upload.php /var/www/html
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
2023-07-04 16:15:53 +00:00
# Start php dep
echo "Starting PHP"
service php8.1-fpm start
2023-07-04 15:46:10 +00:00
# Start Nginx
echo "Starting Nginx"
nginx -g "daemon off;"