From 06d5427bb7957241903a96390915a182f217c448 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 3 Jul 2022 22:23:25 +0800 Subject: [PATCH] up --- plugins/rsyncd/index.py | 2 +- plugins/rsyncd/install.sh | 4 ++-- plugins/sphinx/index.py | 2 +- plugins/sphinx/install.sh | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index b19a570c9..f0f791177 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -126,7 +126,7 @@ def initDreplace(): mw.execShell('chmod +x ' + file_bin) # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/rsyncd.service' systemServiceTpl = getPluginDir() + '/init.d/rsyncd.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): diff --git a/plugins/rsyncd/install.sh b/plugins/rsyncd/install.sh index a686ab695..f771a3514 100755 --- a/plugins/rsyncd/install.sh +++ b/plugins/rsyncd/install.sh @@ -24,10 +24,10 @@ Install_rsyncd() Uninstall_rsyncd() { - if [ -f /lib/systemd/system/rsyncd.service ];then + if [ -f /usr/lib/systemd/system/rsyncd.service ];then systemctl stop rsyncd systemctl disable rsyncd - rm -rf /lib/systemd/system/rsyncd.service + rm -rf /usr/lib/systemd/system/rsyncd.service systemctl daemon-reload fi diff --git a/plugins/sphinx/index.py b/plugins/sphinx/index.py index 676c97a06..2c88586ef 100755 --- a/plugins/sphinx/index.py +++ b/plugins/sphinx/index.py @@ -147,7 +147,7 @@ def initDreplace(): mw.writeFile(getServerDir() + '/sphinx.conf', conf_content) # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/sphinx.service' systemServiceTpl = getPluginDir() + '/init.d/sphinx.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): diff --git a/plugins/sphinx/install.sh b/plugins/sphinx/install.sh index faa104dc3..49ca46742 100755 --- a/plugins/sphinx/install.sh +++ b/plugins/sphinx/install.sh @@ -66,10 +66,10 @@ Install_sphinx() Uninstall_sphinx() { - if [ -f /lib/systemd/system/sphinx.service ];then + if [ -f /usr/lib/systemd/system/sphinx.service ];then systemctl stop sphinx systemctl disable sphinx - rm -rf /lib/systemd/system/sphinx.service + rm -rf /usr/lib/systemd/system/sphinx.service systemctl daemon-reload fi