Add Upgrade Log for app re-installs
This commit is contained in:
parent
aca5806b40
commit
016dd4ac12
|
@ -271,7 +271,9 @@ def reinstall_app(app):
|
|||
|
||||
# Upgrade
|
||||
os.system("mkdir -p /home/admin/upgrade_logs")
|
||||
cmd = "/usr/bin/mynode_reinstall_app.sh {} > /home/admin/upgrade_logs/reinstall_{}.txt 2>&1".format(app,app)
|
||||
file1 = "/home/admin/upgrade_logs/reinstall_{}.txt".format(app)
|
||||
file2 = "/home/admin/upgrade_logs/upgrade_log_latest.txt"
|
||||
cmd = "/usr/bin/mynode_reinstall_app.sh {} 2>&1 | tee {} {}".format(app,file1, file2)
|
||||
subprocess.call(cmd, shell=True)
|
||||
|
||||
# Sync
|
||||
|
|
|
@ -792,6 +792,7 @@ def reinstall_app_page():
|
|||
"title": "myNode Install",
|
||||
"header_text": "Installing",
|
||||
"subheader_text": "This may take a while...",
|
||||
"show_upgrade_log": True,
|
||||
"ui_settings": read_ui_settings()
|
||||
}
|
||||
return render_template('reboot.html', **templateData)
|
||||
|
|
Loading…
Reference in New Issue
Block a user