From e3121017002a75cb2748424c0c5864dc2f590ecd Mon Sep 17 00:00:00 2001 From: ftsell Date: Mon, 7 Oct 2024 20:30:06 +0200 Subject: [PATCH] make occ upgrade call part of the container start script --- nextcloud/start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nextcloud/start.sh b/nextcloud/start.sh index 88be77e..e1fe1dd 100755 --- a/nextcloud/start.sh +++ b/nextcloud/start.sh @@ -6,4 +6,7 @@ nginx export USER=www-data HOME=/home/www-data mkdir -p /run/php + +runuser -u www-data php /var/www/nextcloud/occ upgrade + exec /usr/sbin/php-fpm8.2 --nodaemonize --fpm-config /etc/php/8.2/fpm/php-fpm.conf