pull/119/head
midoks 3 years ago
parent eec656c278
commit 06d5427bb7
  1. 2
      plugins/rsyncd/index.py
  2. 4
      plugins/rsyncd/install.sh
  3. 2
      plugins/sphinx/index.py
  4. 4
      plugins/sphinx/install.sh

@ -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):

@ -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

@ -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):

@ -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

Loading…
Cancel
Save