NextCloud Update: Difference between revisions
From WikiMLT
m Стадий: 4 [Фаза:Авторизиране, Статус:Разработен]; Категория:Linux Server |
|||
Line 34: | Line 34: | ||
| Прндл = Linux Server | | Прндл = Linux Server | ||
| Прндл1 = Web Servers | | Прндл1 = Web Servers | ||
| Стадий = | | Стадий = 4 | ||
| Фаза = | | Фаза = Авторизиране | ||
| Статус = | | Статус = Разработен | ||
| ИдтПт = Spas | | ИдтПт = Spas | ||
| РзбПт = | | РзбПт = Spas | ||
| АвтПт = | | АвтПт = {{REVISIONUSER}} | ||
| УтвПт = Spas | | УтвПт = Spas | ||
| ИдтДт = 24.09.2022 | | ИдтДт = 24.09.2022 | ||
| РзбДт = | | РзбДт = 25.02.2023 | ||
| АвтДт = | | АвтДт = {{Today}} | ||
| УтвДт = 11.11.2022 | | УтвДт = 11.11.2022 | ||
| ИдтРв = [[Special:Permalink/31783|31783]] | | ИдтРв = [[Special:Permalink/31783|31783]] | ||
| РзбРв = | | РзбРв = [[Special:Permalink/32330|32330]] | ||
| АвтРв = | | АвтРв = {{REVISIONID}} | ||
| РзАРв = [[Special:Permalink/31789|31789]] | | РзАРв = [[Special:Permalink/31789|31789]] | ||
| РзУРв = [[Special:Permalink/32163|32163]] | | РзУРв = [[Special:Permalink/32163|32163]] | ||
}} | }} | ||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 10:44, 25 February 2023
Using the command line based updater
Update the NextCloud app itself – the command can also be used to complete a stuck web update.
NC_ROOT="/var/www/cloud.metalevel.tech"
NC_OWNER="www-data"
sudo -u "${NC_OWNER}" \
php --define apc.enable_cli=1 "${NC_ROOT}/updater/updater.phar"
In order to update all apps from CLI use:
sudo -u "${NC_OWNER}" \
php --define apc.enable_cli=1 "${NC_ROOT}/occ" app:update --all
Further you may need to add the missing database indexes:
sudo -u "${NC_OWNER}" \
php --define apc.enable_cli=1 "${NC_ROOT}/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