Skip to content

[rc-1.6.0] Installer: a rerun keeps the web backup of the release it upgraded from - #2004

Merged
mastacontrola merged 1 commit into
rc-1.6.0from
fix/upgrade-rerun-backup-rc
Oct 28, 2026
Merged

mastacontrola merged 1 commit into
rc-1.6.0from
fix/upgrade-rerun-backup-rc

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Port of #2003 to rc-1.6.0. The cherry-pick applied cleanly, and tests/web-backup-keeps-other-release.test.sh passes 9 of 9 on this branch.

Refs #2000

🤖 Generated with Claude Code

configureHttpd() names the web backup after the version being installed and
removes any existing one first. A 1.5 -> 1.6 upgrade run twice therefore
replaced the 1.5 tree with the 1.6 one, and revertfog.sh had no web tree
left to restore.

_setAsideOtherVersionWebBackup() reads the backup's own FOG_VERSION and,
when it is another release, renames it after that release instead. A backup
of the same release is still replaced. revertfog.sh finds the renamed one by
its fog_web_*.BACKUP glob.

The release notes said both backups are named after the version upgraded
from, and that revertfog.sh runs from a 1.5 checkout. Neither was true:
they carry the installed version, and the script exists only on 1.6.

Refs #2000

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mastacontrola
mastacontrola merged commit 3c8b027 into rc-1.6.0 Oct 28, 2026
11 checks passed
@mastacontrola
mastacontrola deleted the fix/upgrade-rerun-backup-rc branch October 28, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant