mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed update bug
This commit is contained in:
parent
5c815b49f9
commit
79b2d05824
3
maloja
3
maloja
@ -4,6 +4,7 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
import signal
|
import signal
|
||||||
import os
|
import os
|
||||||
|
import stat
|
||||||
|
|
||||||
|
|
||||||
neededmodules = [
|
neededmodules = [
|
||||||
@ -100,7 +101,7 @@ def update():
|
|||||||
shutil.rmtree("./maloja-master")
|
shutil.rmtree("./maloja-master")
|
||||||
print("Done!")
|
print("Done!")
|
||||||
|
|
||||||
os.chmod("maloja",stat.S_IXUSR)
|
os.chmod("./maloja",os.stat("./maloja").st_mode | stat.S_IXUSR)
|
||||||
|
|
||||||
if stop(): start() #stop returns whether it was running before, in which case we restart it
|
if stop(): start() #stop returns whether it was running before, in which case we restart it
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user