mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
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:
parent
0c78fab337
commit
f5365809b3
1 changed files with 4 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue