basic update utility -- for complementing installs. Does pull, applies latest patches and sync
This commit is contained in:
parent
1c9913a4f0
commit
652410b333
@ -6,7 +6,7 @@ cmd_list = [
|
||||
'lib/wnf.py -l',
|
||||
'lib/wnf.py --sync_all'
|
||||
]
|
||||
|
||||
err = 0
|
||||
for cmd in cmd_list:
|
||||
stat, op = commands.getstatusoutput(cmd)
|
||||
if stat != 0:
|
||||
@ -14,6 +14,10 @@ for cmd in cmd_list:
|
||||
print "cannot proceed with update"
|
||||
print "status: %s" % stat
|
||||
print "output: %s" % op
|
||||
err = 1
|
||||
break
|
||||
|
||||
print "update_erpnext.py --> run success."
|
||||
if not err:
|
||||
print "update_erpnext.py --> run success."
|
||||
else:
|
||||
print "update_erpnext.py --> run failed."
|
Loading…
x
Reference in New Issue
Block a user