From 6e73e3af9d3310c088fa8a8f0cba3f7f04a6a6dc Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 11 Aug 2025 12:56:27 +0300 Subject: [PATCH] Update init.sh Makes sure the storage directory exists, otherwise it will fail with ```sh In ServerStateFile.php line 49: Unable to write to process ID file. ``` Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- debian/scripts/init.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/scripts/init.sh b/debian/scripts/init.sh index 998e499..bcfe70d 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -49,6 +49,7 @@ if [ "$*" = 'frankenphp php-cli artisan octane:frankenphp' ] || [ "${1#-}" != "$ [ -d /app/storage/framework/sessions ] || mkdir -p /app/storage/framework/sessions [ -d /app/storage/framework/views ] || mkdir -p /app/storage/framework/views [ -d /app/storage/framework/cache ] || mkdir -p /app/storage/framework/cache + [ -d /app/storage/storage ] || mkdir -p /app/storage/storage if [ "$APP_ENV" = "production" ]; then frankenphp php-cli artisan optimize