Update index.py

This commit is contained in:
midoks 2021-04-11 11:36:26 +08:00
parent c13957b906
commit 913a79cc60
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ def initDreplace():
mw.execShell('chmod +x ' + file_bin)
aria2_path = '/root/.config/aria2'
if not os.path.exists(initD_path):
if not os.path.exists(aria2_path):
mw.execShell('mkdir -p ' + aria2_path)
mw.execShell('touch ' + aria2_path + '/aria2.session')
@ -132,7 +132,7 @@ def getPathFile():
user = mw.execShell(
"who | sed -n '2, 1p' |awk '{print $1}'")[0].strip()
return '/Users/' + user + '/.aria2/aria2.conf'
return '/root/.aria2/aria2.conf'
return '/root/.config/aria2/aria2.conf'
def getInitDFile():
@ -175,7 +175,7 @@ def getLog():
user = mw.execShell(
"who | sed -n '2, 1p' |awk '{print $1}'")[0].strip()
return '/Users/' + user + '/.aria2/aria2.log'
return '/root/.aria2/aria2.log'
return '/root/.config/aria2/aria2.log'
if __name__ == "__main__":