refactor: update SnapOtter installation paths and remove backup steps

This commit is contained in:
MickLesk
2026-05-27 15:22:48 +02:00
parent 8f8915f1bb
commit f1e2a7e9f0
3 changed files with 13 additions and 22 deletions

View File

@@ -35,10 +35,6 @@ function update_script() {
systemctl stop snapotter
msg_ok "Stopped Service"
msg_info "Backing up Data"
cp -r /opt/snapotter/data /opt/snapotter_data_backup
msg_ok "Backed up Data"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "snapotter" "snapotter-hq/SnapOtter" "tarball"
cd /opt/snapotter
@@ -46,11 +42,6 @@ function update_script() {
$STD pnpm install --frozen-lockfile
$STD pnpm --filter @snapotter/web build
msg_info "Restoring Data"
cp -r /opt/snapotter_data_backup/. /opt/snapotter/data
rm -rf /opt/snapotter_data_backup
msg_ok "Restored Data"
msg_info "Starting Service"
systemctl start snapotter
msg_ok "Started Service"