Exemple #1
0
def update_this_app():
	import conf
	if hasattr(conf, "expires_on"):
		return _("This feature is only applicable to self hosted instances")
	
	from webnotes.utils import execute_in_shell, cstr, get_base_path
	err, out = execute_in_shell("cd %s && exec ssh-agent lib/wnf.py --update origin master" % \
		(get_base_path(),))

	return "\n".join(filter(None, [cstr(err), cstr(out)]))
Exemple #2
0
def update_erpnext(remote='origin', branch='master'):
    pull(remote, branch)
    from webnotes.utils import execute_in_shell
    execute_in_shell("lib/wnf.py --patch_sync_build", verbose=1)
Exemple #3
0
def update_erpnext(remote='origin', branch='master'):
	pull(remote, branch)
	from webnotes.utils import execute_in_shell
	execute_in_shell("lib/wnf.py --patch_sync_build", verbose=1)