diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index f909297f2..1340a8d57 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -157,7 +157,7 @@ def initDreplace(): # mw.writeFile(conf_bin, content) # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/gogs.service' systemServiceTpl = getPluginDir() + '/init.d/gogs.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): diff --git a/plugins/gogs/install.sh b/plugins/gogs/install.sh index f06e8f857..acaf61078 100755 --- a/plugins/gogs/install.sh +++ b/plugins/gogs/install.sh @@ -79,10 +79,10 @@ Install_gogs() Uninstall_gogs() { - if [ -f /lib/systemd/system/gogs.service ];then + if [ -f /usr/lib/systemd/system/gogs.service ];then systemctl stop gogs systemctl disable gogs - rm -rf /lib/systemd/system/gogs.service + rm -rf /usr/lib/systemd/system/gogs.service systemctl daemon-reload fi diff --git a/plugins/memcached/index.py b/plugins/memcached/index.py index b3bf5fbaa..3680952d7 100755 --- a/plugins/memcached/index.py +++ b/plugins/memcached/index.py @@ -104,7 +104,7 @@ def initDreplace(): mw.execShell('chmod +x ' + file_bin) # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/memcached.service' systemServiceTpl = getPluginDir() + '/init.d/memcached.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): diff --git a/plugins/memcached/install.sh b/plugins/memcached/install.sh index fad5f22cc..0011946ea 100755 --- a/plugins/memcached/install.sh +++ b/plugins/memcached/install.sh @@ -38,10 +38,10 @@ Install_mem(){ Uninstall_mem() { - if [ -f /lib/systemd/system/memcached.service ];then + if [ -f /usr/lib/systemd/system/memcached.service ];then systemctl stop memcached systemctl disable memcached - rm -rf /lib/systemd/system/memcached.service + rm -rf /usr/lib/systemd/system/memcached.service systemctl daemon-reload fi diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index b548e4e51..c066298a4 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -176,7 +176,7 @@ def initDreplace(version=''): mw.writeFile(mysql_conf, content) # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/mysql.service' systemServiceTpl = getPluginDir() + '/init.d/mysql.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): diff --git a/plugins/mysql/install.sh b/plugins/mysql/install.sh index aa36df47e..69d99bcb0 100755 --- a/plugins/mysql/install.sh +++ b/plugins/mysql/install.sh @@ -26,10 +26,10 @@ fi if [ "${action}" == "uninstall" ];then - if [ -f /lib/systemd/system/mysql.service ];then + if [ -f /usr/lib/systemd/system/mysql.service ];then systemctl stop mysql systemctl disable mysql - rm -rf /lib/systemd/system/mysql.service + rm -rf /usr/lib/systemd/system/mysql.service systemctl daemon-reload fi fi diff --git a/plugins/pureftp/index.py b/plugins/pureftp/index.py index d54b245b5..1d729c31f 100755 --- a/plugins/pureftp/index.py +++ b/plugins/pureftp/index.py @@ -117,7 +117,7 @@ def initDreplace(): mw.writeFile(pureFtpdConfig, content) # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/pureftp.service' systemServiceTpl = getPluginDir() + '/init.d/pureftp.service.tpl' diff --git a/plugins/pureftp/install.sh b/plugins/pureftp/install.sh index b314cc93b..83860e62c 100755 --- a/plugins/pureftp/install.sh +++ b/plugins/pureftp/install.sh @@ -88,10 +88,10 @@ Install_pureftp() Uninstall_pureftp() { - if [ -f /lib/systemd/system/pureftp.service ];then + if [ -f /usr/lib/systemd/system/pureftp.service ];then systemctl stop pureftp systemctl disable pureftp - rm -rf /lib/systemd/system/pureftp.service + rm -rf /usr/lib/systemd/system/pureftp.service systemctl daemon-reload fi diff --git a/plugins/redis/index.py b/plugins/redis/index.py index 5c57d2fef..4c9faf5d4 100755 --- a/plugins/redis/index.py +++ b/plugins/redis/index.py @@ -104,7 +104,7 @@ def initDreplace(): mw.writeFile(dst_conf_init, 'ok') # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/redis.service' systemServiceTpl = getPluginDir() + '/init.d/redis.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): diff --git a/plugins/redis/install.sh b/plugins/redis/install.sh index d19ffd750..69fc64b3a 100755 --- a/plugins/redis/install.sh +++ b/plugins/redis/install.sh @@ -40,10 +40,10 @@ Install_redis() Uninstall_redis() { - if [ -f /lib/systemd/system/redis.service ];then + if [ -f /usr/lib/systemd/system/redis.service ];then systemctl stop redis systemctl disable redis - rm -rf /lib/systemd/system/redis.service + rm -rf /usr/lib/systemd/system/redis.service systemctl daemon-reload fi