NextCloud Update: Difference between revisions
From WikiMLT
m Стадий: 4 [Фаза:Авторизиране, Статус:Разработен]; Категория:Linux Server |
m Стадий: 5 [Фаза:Утвърждаване, Статус:Авторизиран]; Категория:Linux Server |
||
Line 34: | Line 34: | ||
| Прндл = Linux Server | | Прндл = Linux Server | ||
| Прндл1 = Web Servers | | Прндл1 = Web Servers | ||
| Стадий = | | Стадий = 5 | ||
| Фаза = | | Фаза = Утвърждаване | ||
| Статус = | | Статус = Авторизиран | ||
| ИдтПт = Spas | | ИдтПт = Spas | ||
| РзбПт = Spas | | РзбПт = Spas | ||
| АвтПт = | | АвтПт = Spas | ||
| УтвПт = | | УтвПт = {{REVISIONUSER}} | ||
| ИдтДт = 24.09.2022 | | ИдтДт = 24.09.2022 | ||
| РзбДт = 25.02.2023 | | РзбДт = 25.02.2023 | ||
| АвтДт = | | АвтДт = 25.02.2023 | ||
| УтвДт = | | УтвДт = {{Today}} | ||
| ИдтРв = [[Special:Permalink/31783|31783]] | | ИдтРв = [[Special:Permalink/31783|31783]] | ||
| РзбРв = [[Special:Permalink/32330|32330]] | | РзбРв = [[Special:Permalink/32330|32330]] | ||
| АвтРв = | | АвтРв = [[Special:Permalink/32331|32331]] | ||
| РзАРв = [[Special:Permalink/31789|31789]] | | РзАРв = [[Special:Permalink/31789|31789]] | ||
| УтвРв = {{REVISIONID}} | |||
| РзУРв = [[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