Fix wo update

This commit is contained in:
VirtuBox
2019-06-16 22:00:15 +02:00
parent fef6ffc582
commit 036f3b3710

View File

@@ -27,16 +27,15 @@ class WOUpdateController(CementBaseController):
@expose(hide=True)
def default(self):
if (not (self.app.pargs.force)):
self.update_wordops
if (self.app.pargs.force):
self.force_update_wordops
filename = "woupdate" + time.strftime("%Y%m%d-%H%M%S")
WODownload.download(self, [["https://raw.githubusercontent.com/"
"WordOps/WordOps/master/install",
"/tmp/{0}".format(filename),
"update script"]])
if (not (self.app.pargs.force)):
self.update_wordops
if (self.app.pargs.force):
self.force_update_wordops
@expose(hide=True)
def update_wordops(self):