Compare commits

...

2 Commits

Author SHA1 Message Date
David Bomba
814dd175c7 Merge pull request #849 from benbrummer/debian
Fix spacing issue in init.sh script
2026-01-03 15:01:20 +11:00
benbrummer
06f723d7dc Fix spacing issue in init.sh script
Signed-off-by: benbrummer <info@benjamin-brummer.de>
2026-01-02 08:46:44 +01:00

View File

@@ -10,7 +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/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
@@ -43,7 +43,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# Clear and cache config in production
if [ "$APP_ENV" = "production" ]; then
runuser -u www-data -- php artisan migrate --force
runuser -u www-data -- php artisan migrate --force
runuser -u www-data -- php artisan cache:clear # Clear after the migration
runuser -u www-data -- php artisan ninja:design-update
runuser -u www-data -- php artisan optimize