mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
trip
This commit is contained in:
10
ct/trip.sh
10
ct/trip.sh
@@ -34,8 +34,8 @@ function update_script() {
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing up Configuration"
|
||||
cp -r /opt/trip/.env /opt/trip.env.bak 2>/dev/null || true
|
||||
cp -r /opt/trip/data /opt/trip_data_backup 2>/dev/null || true
|
||||
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"
|
||||
@@ -53,10 +53,10 @@ function update_script() {
|
||||
msg_ok "Updated Backend"
|
||||
|
||||
msg_info "Restoring Configuration"
|
||||
cp /opt/trip.env.bak /opt/trip/.env 2>/dev/null || true
|
||||
cp -r /opt/trip_data_backup/. /opt/trip/data 2>/dev/null || true
|
||||
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_data_backup
|
||||
rm -rf /opt/trip_storage_backup
|
||||
msg_ok "Restored Configuration"
|
||||
|
||||
msg_info "Starting Service"
|
||||
|
||||
Reference in New Issue
Block a user