Skip to content

Commit

Permalink
Update Nextcloud update script to include database repair command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean28518 committed Aug 2, 2024
1 parent 2a47e7e commit 673d506
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lac/unix/unix_scripts/nextcloud/update_nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ sudo -u www-data php /var/www/nextcloud/updater/updater.phar --no-interaction
sudo -u www-data php /var/www/nextcloud/occ upgrade

# Update the database
sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices

# Repair nextcloud (sometimes this is needed by nextcloud itself.)
sudo -u www-data php /var/www/nextcloud/occ maintenance:repair --include-expensive

0 comments on commit 673d506

Please sign in to comment.