diff --git a/nextcloud/cron.sh b/nextcloud/cron.sh index 4beb6fb..7c83ef3 100755 --- a/nextcloud/cron.sh +++ b/nextcloud/cron.sh @@ -9,8 +9,14 @@ mkdir -p /run/php export USER=www-data HOME=/home/www-data echo "Syncing system address books with dav" -su -s /var/www/nextcloud/occ www-data dav:sync-system-addressbook +su -s /var/www/nextcloud/occ www-data -- dav:sync-system-addressbook echo "Running cron.php" su -s /usr/bin/php www-data /var/www/nextcloud/cron.php +echo "Add missing db indices" +su -s /var/www/nextcloud/occ www-data -- db:add-missing-indices + +echo "Running expensive maintenance repair tasks" +su -s /var/www/nextcloud/occ www-data -- maintenance:repair --include-expensive +