11 lines
307 B
Bash
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;" |