Merge pull request #845 from Thulium-Drake/fix_init

Ensure that the target folder is present before copying files into it
This commit is contained in:
David Bomba
2025-12-28 09:50:53 +11:00
committed by GitHub

View File

@@ -10,6 +10,7 @@ fi
if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# Check for required folders and create if needed # 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/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/sessions ] || mkdir -p /var/www/html/storage/framework/sessions
[ -d /var/www/html/storage/framework/views ] || mkdir -p /var/www/html/storage/framework/views [ -d /var/www/html/storage/framework/views ] || mkdir -p /var/www/html/storage/framework/views