Update index.py

pull/109/head
Mr Chen 6 years ago
parent ece8baac22
commit 3e2970a6e2
  1. 3
      plugins/qbittorrent/index.py

@ -86,7 +86,7 @@ def getRunLog():
def initDreplace():
ddir = getServerDir() + '/workers'
# if not os.path.exists(ddir):
if not os.path.exists(ddir):
sdir = getPluginDir() + '/workers'
public.execShell('cp -rf ' + sdir + ' ' + getServerDir())
@ -105,6 +105,7 @@ def initDreplace():
file_bin = initD_path + '/' + getPluginName()
# initd replace
if not os.path.exists(file_bin):
content = public.readFile(file_tpl)
content = content.replace('{$SERVER_PATH}', service_path)
public.writeFile(file_bin, content)

Loading…
Cancel
Save