Skip to content

Commit

Permalink
force overwrite of unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronak Rahman committed Oct 26, 2021
1 parent d37fd32 commit 28c02bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/mcserver/mcadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def restoreMCworld():
filePath = '/tmp/minecraft_save.zip'
if os.path.exists(filePath):
stopMCworld()
subprocess.run('unzip /tmp/minecraft_save.zip -d /', shell=True)
subprocess.run('unzip -o /tmp/minecraft_save.zip -d /', shell=True)
subprocess.run('screen -dmS myserver /usr/bin/java -jar /opt/minecraft/server.jar --nogui', shell=True)
return 'MC Server restored!'
elif:
else:
return 'Save file does not exist in /tmp, have you uploaded it?'


Expand Down

0 comments on commit 28c02bc

Please sign in to comment.