Add Upgrade Log for app re-installs

This commit is contained in:
Taylor Helsper 2021-02-14 11:58:37 -06:00
parent aca5806b40
commit 016dd4ac12
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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)