basic update utility -- for complementing installs. Does pull, applies latest patches and sync
This commit is contained in:
parent
d2ec87cf5b
commit
0a4d1e337d
17
update_erpnext.py
Normal file
17
update_erpnext.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
import commands
|
||||||
|
|
||||||
|
cmd_list = [
|
||||||
|
'lib/wnf.py --pull origin master',
|
||||||
|
'lib/wnf.py -l',
|
||||||
|
'lib/wnf.py --sync_all'
|
||||||
|
]
|
||||||
|
|
||||||
|
for cmd in cmd_list:
|
||||||
|
stat, op = commands.getstatusoutput(cmd)
|
||||||
|
if stat != 0:
|
||||||
|
print "something went wrong"
|
||||||
|
print "cannot proceed with update"
|
||||||
|
print "status: %s" % stat
|
||||||
|
print "output: %s" % op
|
||||||
|
break
|
Loading…
Reference in New Issue
Block a user