fix docker image?
This commit is contained in:
parent
0054cf076d
commit
0410552de9
@ -9,6 +9,7 @@ apt install nginx php-fpm php-gd -y
|
|||||||
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Setup scripts
|
# Setup scripts
|
||||||
|
COPY ./upload.php /tmp/upload.php
|
||||||
COPY ./docker/start.sh /start.sh
|
COPY ./docker/start.sh /start.sh
|
||||||
|
|
||||||
# Start server
|
# Start server
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
UPLOAD_SCRIPT="upload.php"
|
echo "Checking if upload script exists in /var/www/html"
|
||||||
|
if [ -f "/var/www/html/upload.php" ]; then
|
||||||
echo "Checking if $UPLOAD_SCRIPT exists in /var/www/html"
|
|
||||||
if [ -f "$UPLOAD_SCRIPT" ]; then
|
|
||||||
echo "Upload script was found, ignoring copy."
|
echo "Upload script was found, ignoring copy."
|
||||||
else
|
else
|
||||||
cp /var/www/html/$UPLOAD_SCRIPT $UPLOAD_SCRIPT
|
cp /tmp/upload.php /var/www/html
|
||||||
echo "Upload script was not found, copying it."
|
echo "Upload script was not found, copying it."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user