Update index.py
This commit is contained in:
parent
c13957b906
commit
913a79cc60
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Reference in New Issue