From f76cb5cdebc181cee82cb4a414fc5edeb9855b00 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 7 Apr 2026 12:18:40 -0300 Subject: [PATCH] installer: retire legacy /opt/hecate path during migration --- scripts/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 6f0b631..b3c13e5 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -595,11 +595,12 @@ retire_legacy_hecate_install() { systemctl disable --now hecate.service hecate-bootstrap.service hecate-update.timer >/dev/null 2>&1 || true systemctl stop hecate-update.service >/dev/null 2>&1 || true - if [[ -d /etc/hecate || -d /var/lib/hecate || -d /usr/local/lib/hecate ]]; then + if [[ -d /etc/hecate || -d /var/lib/hecate || -d /usr/local/lib/hecate || -d /opt/hecate ]]; then install -d -m 0750 "${backup_dir}" [[ -d /etc/hecate ]] && cp -a /etc/hecate "${backup_dir}/" || true [[ -d /var/lib/hecate ]] && cp -a /var/lib/hecate "${backup_dir}/" || true [[ -d /usr/local/lib/hecate ]] && cp -a /usr/local/lib/hecate "${backup_dir}/" || true + [[ -d /opt/hecate ]] && cp -a /opt/hecate "${backup_dir}/" || true [[ -f /usr/local/bin/hecate ]] && install -m 0755 /usr/local/bin/hecate "${backup_dir}/hecate.bin" || true echo "[install] backed up legacy hecate assets to ${backup_dir}" fi @@ -611,6 +612,7 @@ retire_legacy_hecate_install() { /etc/systemd/system/hecate-update.timer rm -f /usr/local/bin/hecate rm -rf /usr/local/lib/hecate + rm -rf /opt/hecate rm -rf /etc/hecate rm -rf /var/lib/hecate }