Fixed update bug

This commit is contained in:
Krateng 2019-02-16 21:04:13 +01:00
parent 5c815b49f9
commit 79b2d05824
1 changed files with 2 additions and 1 deletions

3
maloja
View File

@ -4,6 +4,7 @@ import subprocess
import sys
import signal
import os
import stat
neededmodules = [
@ -100,7 +101,7 @@ def update():
shutil.rmtree("./maloja-master")
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