From a9fea5e552c40a3fae3ae619204284421e7a0816 Mon Sep 17 00:00:00 2001 From: nicedevil007 <17103076+nicedevil007@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:29:18 +0200 Subject: [PATCH] Update alpine-nextcloud.sh (#1852) as suggested by tteckster --- ct/alpine-nextcloud.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ct/alpine-nextcloud.sh b/ct/alpine-nextcloud.sh index 8931f824..b0faf344 100644 --- a/ct/alpine-nextcloud.sh +++ b/ct/alpine-nextcloud.sh @@ -74,15 +74,9 @@ function update_script() { header_info case $CHOICE in 1) - INSTALLED=$(grep -Rnw '/usr/share/webapps/nextcloud/config/config.php' -e ''\'installed\'' => false,') - if [ -z "$INSTALLED" ] - then - 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 db:add-missing-indices' - else - msg_error "${APP} not initialized, go to the WebUI and run the Setup-Wizard first.\n" - fi + 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 db:add-missing-indices' exit ;; 2)