Update tracktor.sh

This commit is contained in:
Tobias 2025-08-07 15:10:48 +02:00 committed by Push From Github
parent 3491e9b6c3
commit 8421aea535

View File

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