From 8421aea535d6c119829e32d16ebe1ba25e03d0e9 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:10:48 +0200 Subject: [PATCH] Update tracktor.sh --- ct/tracktor.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ct/tracktor.sh b/ct/tracktor.sh index f6aa2d98..e50da7b5 100644 --- a/ct/tracktor.sh +++ b/ct/tracktor.sh @@ -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"