Fix wo update
This commit is contained in:
@@ -27,16 +27,15 @@ class WOUpdateController(CementBaseController):
|
|||||||
|
|
||||||
@expose(hide=True)
|
@expose(hide=True)
|
||||||
def default(self):
|
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")
|
filename = "woupdate" + time.strftime("%Y%m%d-%H%M%S")
|
||||||
WODownload.download(self, [["https://raw.githubusercontent.com/"
|
WODownload.download(self, [["https://raw.githubusercontent.com/"
|
||||||
"WordOps/WordOps/master/install",
|
"WordOps/WordOps/master/install",
|
||||||
"/tmp/{0}".format(filename),
|
"/tmp/{0}".format(filename),
|
||||||
"update script"]])
|
"update script"]])
|
||||||
|
if (not (self.app.pargs.force)):
|
||||||
|
self.update_wordops
|
||||||
|
if (self.app.pargs.force):
|
||||||
|
self.force_update_wordops
|
||||||
|
|
||||||
@expose(hide=True)
|
@expose(hide=True)
|
||||||
def update_wordops(self):
|
def update_wordops(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user