From d81eb48e55a62e2f74483ec281fb2c63ac48032b Mon Sep 17 00:00:00 2001 From: Jeffrey van Pelt Date: Sat, 20 Dec 2025 12:11:55 +0100 Subject: [PATCH 1/2] Ensure that the target folder is present before copying files into it --- debian/scripts/init.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/scripts/init.sh b/debian/scripts/init.sh index 2390fa1..f98478a 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -21,6 +21,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then rm -rf /var/www/html/public/.htaccess \ /var/www/html/public/.well-known \ /var/www/html/public/* + mkdir -p /var/www/html/public cp -r /tmp/public/* \ /tmp/public/.htaccess \ /tmp/public/.well-known \ From d222163f8203df5486d230d1888edbce86d33c12 Mon Sep 17 00:00:00 2001 From: Jeffrey van Pelt Date: Wed, 24 Dec 2025 13:04:50 +0100 Subject: [PATCH 2/2] Fix syntax to match other folders --- debian/scripts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/init.sh b/debian/scripts/init.sh index f98478a..fe97d18 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -10,6 +10,7 @@ fi if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then # Check for required folders and create if needed + [ -d /var/www/html/public] || mkdir -p /var/www/html/public [ -d /var/www/html/storage/app/public ] || mkdir -p /var/www/html/storage/app/public [ -d /var/www/html/storage/framework/sessions ] || mkdir -p /var/www/html/storage/framework/sessions [ -d /var/www/html/storage/framework/views ] || mkdir -p /var/www/html/storage/framework/views @@ -21,7 +22,6 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then rm -rf /var/www/html/public/.htaccess \ /var/www/html/public/.well-known \ /var/www/html/public/* - mkdir -p /var/www/html/public cp -r /tmp/public/* \ /tmp/public/.htaccess \ /tmp/public/.well-known \