fix: second round audit - backup paths, cleanup, dead code

CT scripts:
- ct/hoodik.sh: backup to /opt instead of /tmp
- ct/pixelfed.sh: backup to /opt, add CLEAN_INSTALL=1
- ct/skylite-ux.sh: backup to /opt instead of /tmp

Install scripts:
- install/alpine-install.sh: add missing cleanup_lxc
- install/ubuntu-install.sh: replace manual apt-get cleanup with cleanup_lxc
- install/debian-install.sh: apt-get -> apt
- install/hoodik-install.sh: remove 40 lines of dead commented code
- install/step-ca-install.sh: remove  from export builtins
This commit is contained in:
CanbiZ (MickLesk)
2026-03-23 15:38:08 +01:00
parent 7b8792fbb3
commit 68fce5f1b3
8 changed files with 16 additions and 60 deletions

View File

@@ -36,14 +36,14 @@ function update_script() {
msg_ok "Services stopped"
msg_info "Backing up Configuration"
cp /opt/pixelfed/.env /tmp/pixelfed.env.bak
cp /opt/pixelfed/.env /opt/pixelfed.env.bak
msg_ok "Configuration backed up"
fetch_and_deploy_gh_release "pixelfed" "pixelfed/pixelfed" "tarball" "latest" "/opt/pixelfed"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pixelfed" "pixelfed/pixelfed" "tarball" "latest" "/opt/pixelfed"
msg_info "Restoring Configuration"
cp /tmp/pixelfed.env.bak /opt/pixelfed/.env
rm -f /tmp/pixelfed.env.bak
cp /opt/pixelfed.env.bak /opt/pixelfed/.env
rm -f /opt/pixelfed.env.bak
msg_ok "Configuration restored"
msg_info "Updating Pixelfed"