From 0f86e007411cb7479691aea7a2901b6cc05cc827 Mon Sep 17 00:00:00 2001 From: YGAS Date: Thu, 23 Sep 2021 14:38:13 +0800 Subject: [PATCH] update nextcloud --- applications/luci-app-homeassistant/Makefile | 4 ++-- applications/luci-app-nextcloud/Makefile | 4 ++-- .../luci-app-nextcloud/luasrc/controller/nextcloud.lua | 1 + .../luci-app-nextcloud/luasrc/model/cbi/nextcloud/script.lua | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/applications/luci-app-homeassistant/Makefile b/applications/luci-app-homeassistant/Makefile index 1a2b7dd..d769200 100644 --- a/applications/luci-app-homeassistant/Makefile +++ b/applications/luci-app-homeassistant/Makefile @@ -3,8 +3,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-homeassistant -PKG_VERSION:=1.0.0 -PKG_RELEASE:=20210915 +PKG_VERSION:=1.0.1 +PKG_RELEASE:=20210923 LUCI_TITLE:=LuCI support for homeassistant LUCI_PKGARCH:=all diff --git a/applications/luci-app-nextcloud/Makefile b/applications/luci-app-nextcloud/Makefile index 535c266..acda697 100644 --- a/applications/luci-app-nextcloud/Makefile +++ b/applications/luci-app-nextcloud/Makefile @@ -3,8 +3,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-nextcloud -PKG_VERSION:=1.0.0 -PKG_RELEASE:=20210912 +PKG_VERSION:=1.0.1 +PKG_RELEASE:=20210923 LUCI_TITLE:=LuCI support for nextcloud LUCI_PKGARCH:=all diff --git a/applications/luci-app-nextcloud/luasrc/controller/nextcloud.lua b/applications/luci-app-nextcloud/luasrc/controller/nextcloud.lua index a5b2523..04a7337 100755 --- a/applications/luci-app-nextcloud/luasrc/controller/nextcloud.lua +++ b/applications/luci-app-nextcloud/luasrc/controller/nextcloud.lua @@ -63,6 +63,7 @@ function uninstall_container() local status = container_status() local container_id = status.container_id util.exec("docker container rm '"..container_id.."'") + util.exec("rm -rf /root/usr/share/nextcloud") end -- 总结: diff --git a/applications/luci-app-nextcloud/luasrc/model/cbi/nextcloud/script.lua b/applications/luci-app-nextcloud/luasrc/model/cbi/nextcloud/script.lua index b140e98..9e3b170 100755 --- a/applications/luci-app-nextcloud/luasrc/model/cbi/nextcloud/script.lua +++ b/applications/luci-app-nextcloud/luasrc/model/cbi/nextcloud/script.lua @@ -13,10 +13,10 @@ function sync_value_to_file(value, file) end function view_cfg.cfgvalue() - return fs.readfile("/usr/share/jellyfin/install.sh") or "" + return fs.readfile("/usr/share/nextcloud/install.sh") or "" end function view_cfg.write(self, section, value) - sync_value_to_file(value, "/usr/share/jellyfin/install.sh") + sync_value_to_file(value, "/usr/share/nextcloud/install.sh") end return s