Skip to content

Commit 9c16d4c

Browse files
authored
Merge pull request #187 from zztalker/TCR-877-host-os-upgrade-section
docs/update: add Host OS upgrade section (TCR-877)
2 parents 1dd9eb0 + 611b3cf commit 9c16d4c

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

docs/update/README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ Ubuntu 16.04, 18.04, 20.04, and 22* systems:
128128
apt-get update
129129
apt-get install --only-upgrade imunify360-firewall
130130
```
131-
release-upgrade will require manually edit Imunify repositories before enabling them.
131+
132+
:::tip Note
133+
If you have upgraded the underlying OS (for example, Ubuntu 22.04 → 24.04), the Imunify repository `.list` files still point at the previous OS version and `apt-get update` will fail. Run the deploy script with `--post-os-upgrade` to refresh the repositories — see [Host OS upgrade](#host-os-upgrade) below.
134+
:::
132135

133136
Debian 9 (supported up to Imunify v6.11 (including)), 10, and 11 systems:
134137

@@ -137,5 +140,41 @@ apt-get update
137140
apt-get install --only-upgrade imunify360-firewall
138141
```
139142

143+
## Host OS upgrade
144+
145+
When you upgrade the underlying operating system (for example, Ubuntu 22.04 → 24.04) on a server where Imunify360 or ImunifyAV is installed, the APT repository `.list` files keep pointing at the **previous** OS version. As a result `apt-get update` will either return 404 errors or pull packages built for the old OS, and the daily update cron will silently install the wrong packages.
146+
147+
This applies only to **Debian/Ubuntu** systems. RPM-based systems (CentOS / CloudLinux / AlmaLinux) are unaffected because `yum`/`dnf` resolve the OS version dynamically.
148+
149+
To recover after a host OS upgrade, run the deploy script with the `--post-os-upgrade` flag.
150+
151+
For Imunify360:
152+
153+
<div class="notranslate">
154+
155+
```
156+
bash i360deploy.sh --post-os-upgrade -y
157+
```
158+
</div>
159+
160+
For ImunifyAV:
161+
162+
<div class="notranslate">
163+
164+
```
165+
bash imav-deploy.sh --post-os-upgrade -y
166+
```
167+
</div>
168+
169+
The flag requires deploy script version **2.152** or later. It performs the following steps automatically:
140170

171+
1. Reinstalls `imunify-release` for the OS currently reported by `/etc/os-release`, which rewrites the repository `.list` files to the new OS version.
172+
2. Handles the GPG key `.dpkg-dist` edge case introduced by Ubuntu 24.04 and later.
173+
3. Re-enables the beta/testing repository if it was active before the upgrade.
174+
4. Runs `apt-get update` and reinstalls the product package to pick up binaries built for the new OS.
175+
5. Restarts the Imunify service so that the in-memory cache of `/etc/os-release` is refreshed.
176+
177+
:::tip Note
178+
Run `--post-os-upgrade` only **after** the host OS upgrade has completed and the new OS has booted. The flag is intended for recovery; it cannot be combined with `--uninstall`. On RPM-based systems the flag exits early with an informational message.
179+
:::
141180

0 commit comments

Comments
 (0)