fix(nextcloud): Add cron setup for background jobs
Configure Nextcloud cron job (every 5 minutes) in container startup script for proper background task execution (file scanning, cleanup, notifications, etc.) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
aa86161af0
commit
8412639a8c
@ -446,6 +446,11 @@ NGINX
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
ln -sf /etc/nginx/sites-available/nextcloud /etc/nginx/sites-enabled/nextcloud
|
||||
|
||||
# Configure cron for background jobs
|
||||
echo "*/5 * * * * www-data php -f /var/www/nextcloud/cron.php" > /etc/cron.d/nextcloud
|
||||
chmod 644 /etc/cron.d/nextcloud
|
||||
service cron start
|
||||
|
||||
# Start Nginx (foreground for procd)
|
||||
echo "Starting Nginx..."
|
||||
exec nginx -g 'daemon off;'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user