1
0
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:
Krateng 2019-02-16 21:04:13 +01:00
parent 5c815b49f9
commit 79b2d05824

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