mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-26 03:55:54 +00:00
Update tracktor.sh
This commit is contained in:
@@ -34,6 +34,10 @@ function update_script() {
|
||||
systemctl stop tracktor
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Creating Backup"
|
||||
cp /opt/tracktor/app/server/.env /opt/tracktor.env
|
||||
msg_ok "Created Backup"
|
||||
|
||||
msg_info "Updating ${APP}"
|
||||
setup_nodejs
|
||||
fetch_and_deploy_gh_release "tracktor" "javedh-dev/tracktor"
|
||||
@@ -43,6 +47,10 @@ function update_script() {
|
||||
$STD npm run build
|
||||
msg_ok "Updated $APP"
|
||||
|
||||
msg_info "Restoring Backup"
|
||||
cp /opt/tracktor.env /opt/tracktor/app/server/.env
|
||||
msg_ok "Restored Backup"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start tracktor
|
||||
msg_ok "Started Service"
|
||||
|
||||
Reference in New Issue
Block a user