fix(installer): remove config backup that filled disk on upgrades

The backup_existing function copied the entire config directory
(including metrics.db at ~2.5GB) on every upgrade with no cleanup.
On small VMs this filled the disk within a few releases.

The upgrade only swaps the binary; config files are not modified,
so the backup served no practical purpose.
This commit is contained in:
rcourtman 2026-03-01 23:19:55 +00:00
parent 0c78fab337
commit f5365809b3

View file

@ -1863,10 +1863,10 @@ create_user() {
}
backup_existing() {
if [[ -d "$CONFIG_DIR" ]]; then
print_info "Backing up existing configuration..."
cp -a "$CONFIG_DIR" "${CONFIG_DIR}.backup.$(date +%Y%m%d-%H%M%S)"
fi
# No-op: removed full config-dir backup that accumulated multi-GB copies
# on every upgrade without cleanup, filling disks on small VMs.
# The upgrade only swaps the binary; config files are not modified.
:
}
download_pulse() {