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
|
# Upgrade
|
||||||
os.system("mkdir -p /home/admin/upgrade_logs")
|
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)
|
subprocess.call(cmd, shell=True)
|
||||||
|
|
||||||
# Sync
|
# Sync
|
||||||
|
|
|
@ -792,6 +792,7 @@ def reinstall_app_page():
|
||||||
"title": "myNode Install",
|
"title": "myNode Install",
|
||||||
"header_text": "Installing",
|
"header_text": "Installing",
|
||||||
"subheader_text": "This may take a while...",
|
"subheader_text": "This may take a while...",
|
||||||
|
"show_upgrade_log": True,
|
||||||
"ui_settings": read_ui_settings()
|
"ui_settings": read_ui_settings()
|
||||||
}
|
}
|
||||||
return render_template('reboot.html', **templateData)
|
return render_template('reboot.html', **templateData)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user