From a22377a56ff76bbce622f424b8df414987065070 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Tue, 4 Jul 2023 17:23:14 +0100 Subject: [PATCH] add fallback size --- docker/start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/start.sh b/docker/start.sh index 2434eff..d7e2cb3 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -1,3 +1,7 @@ +if [[ -z "${MAX_UPLOAD_SIZE}" ]]; then + MAX_UPLOAD_SIZE="8M" # Default fallback value +fi + 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."