mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-11-07 19:31:58 +01:00
Merge branch 'main' into release-1.1
This commit is contained in:
commit
fcafa72655
17
scripts/nextcloud-update
Normal file
17
scripts/nextcloud-update
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Update nextcloud
|
||||||
|
# place in /etc/cron.daily and make executable with chmod +x /etc/cron.daily/nextcloud-update
|
||||||
|
user=www-data
|
||||||
|
phpversion=php8.0
|
||||||
|
path=/var/www/nextcloud
|
||||||
|
|
||||||
|
alias ncc="sudo -u $user $phpversion $path/occ"
|
||||||
|
alias updater="sudo -u $user $phpversion $path/updater/updater.phar"
|
||||||
|
|
||||||
|
updater --no-backup --no-interaction
|
||||||
|
|
||||||
|
subcommands=("db:add-missing-primary-keys" "db:add-missing-indices" "db:add-missing-columns" "db:convert-filecache-bigint" "files:scan-app-data" "--quiet --all app:update" "upgrade")
|
||||||
|
for cmd in ${subcommands[@]}; do
|
||||||
|
ncc -n $cmd
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user