Update alpine-nextcloud.sh (#1852)

as suggested by tteckster
This commit is contained in:
nicedevil007 2023-09-28 19:29:18 +02:00 committed by GitHub
parent c1627e1ce7
commit a9fea5e552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 9 deletions

View File

@ -74,15 +74,9 @@ function update_script() {
header_info header_info
case $CHOICE in case $CHOICE in
1) 1)
INSTALLED=$(grep -Rnw '/usr/share/webapps/nextcloud/config/config.php' -e ''\'installed\'' => false,')
if [ -z "$INSTALLED" ]
then
apk update && apk upgrade apk update && apk upgrade
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 upgrade'
su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ db:add-missing-indices' su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ db:add-missing-indices'
else
msg_error "${APP} not initialized, go to the WebUI and run the Setup-Wizard first.\n"
fi
exit exit
;; ;;
2) 2)