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
|
|
|
|
|
|
|
|
# Start Nginx
|
|
|
|
echo "Starting Nginx"
|
|
|
|
nginx -g "daemon off;"
|