diff --git a/nextcloud/main.yaml b/nextcloud/main.yaml index 553b314..601da30 100644 --- a/nextcloud/main.yaml +++ b/nextcloud/main.yaml @@ -452,9 +452,9 @@ spec: - /bin/sh - -c - | - apk add --no-cache su-exec + apt-get update && apt-get install -y gosu mkdir -p /etc/crontabs - echo "*/1 * * * * su-exec 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root + echo "*/1 * * * * gosu 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root exec busybox crond -c /etc/crontabs -f -L /dev/stdout env: - name: POSTGRES_HOST diff --git a/nextcloud/src/values.yaml b/nextcloud/src/values.yaml index ac020c9..81f63f4 100644 --- a/nextcloud/src/values.yaml +++ b/nextcloud/src/values.yaml @@ -642,9 +642,9 @@ cronjob: - /bin/sh - -c - | - apk add --no-cache su-exec + apt-get update && apt-get install -y gosu mkdir -p /etc/crontabs - echo "*/1 * * * * su-exec 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root + echo "*/1 * * * * gosu 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root exec busybox crond -c /etc/crontabs -f -L /dev/stdout # Uses a Kubernetes CronJob to execute the Nextcloud cron tasks