update script

This commit is contained in:
CrazyWolf13 2026-01-16 14:40:12 +01:00
parent e605b7ba38
commit bbbfb7ddc2

View File

@ -33,12 +33,7 @@ function update_script() {
systemctl stop trip systemctl stop trip
msg_ok "Stopped Service" msg_ok "Stopped Service"
msg_info "Backing up Configuration" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "trip" "itskovacs/TRIP"
cp /opt/trip.env /opt/trip.env.bak
cp -r /opt/trip_storage /opt/trip_storage_backup
msg_ok "Backed up Configuration"
fetch_and_deploy_gh_release "trip" "itskovacs/TRIP"
msg_info "Updating Frontend" msg_info "Updating Frontend"
cd /opt/trip/src cd /opt/trip/src
@ -52,13 +47,6 @@ function update_script() {
$STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt $STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt
msg_ok "Updated Backend" msg_ok "Updated Backend"
msg_info "Restoring Configuration"
cp /opt/trip.env.bak /opt/trip.env
cp -r /opt/trip_storage_backup/. /opt/trip_storage
rm -f /opt/trip.env.bak
rm -rf /opt/trip_storage_backup
msg_ok "Restored Configuration"
msg_info "Starting Service" msg_info "Starting Service"
systemctl start trip systemctl start trip
msg_ok "Started Service" msg_ok "Started Service"