Update alpine-nextcloud.sh

Nextcloud 28.0 requires sodium and bz2
pull/2259/head
tteckster 2023-12-20 06:44:01 -05:00 committed by GitHub
parent 09bf75771d
commit 7377f1627b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,12 @@ function update_script() {
case $CHOICE in
1)
apk update && apk upgrade
if ! apk -e info php82-sodium >/dev/null 2>&1; then
apk add -q php82-sodium
fi
if ! apk -e info php82-bz2 >/dev/null 2>&1; then
apk add -q php82-bz2
fi
su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ upgrade'
su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ db:add-missing-indices'
exit