NextCloud Update: Difference between revisions
From WikiMLT
Line 8: | Line 8: | ||
sudo -u www-data \ | sudo -u www-data \ | ||
php --define apc.enable_cli=1 /var/www/cloud.metalevel.tech/occ app:update --all | php --define apc.enable_cli=1 /var/www/cloud.metalevel.tech/occ app:update --all | ||
</syntaxhighlight>Further you may need to add the missing database indexes:<syntaxhighlight lang="shell" line="1"> | |||
sudo -u www-data \ | |||
php --define apc.enable_cli=1 /var/www/cloud.metalevel.tech/occ db:add-missing-indices | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 11:24, 11 November 2022
Using the command line based updater
The command can also be used to complete a stuck web update.
sudo -u www-data \
php --define apc.enable_cli=1 /var/www/cloud.metalevel.tech/updater/updater.phar
In order to update all apps from CLI use:
sudo -u www-data \
php --define apc.enable_cli=1 /var/www/cloud.metalevel.tech/occ app:update --all
Further you may need to add the missing database indexes:
sudo -u www-data \
php --define apc.enable_cli=1 /var/www/cloud.metalevel.tech/occ db:add-missing-indices
References
- NextCloud Docs: Using the web based updater | Finish via command line based upgrade
- NextCloud Docs: Using the command line based updater
- NextCloud Docs: Using the
occ
command