瀏覽代碼

Update alpine-nextcloud.sh (#1852)

as suggested by tteckster
nicedevil007 1 年之前
父節點
當前提交
a9fea5e552
共有 1 個文件被更改,包括 3 次插入9 次删除
  1. 3 9
      ct/alpine-nextcloud.sh

+ 3 - 9
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)