| 1 | systemctl disable zammad --now |
| 2 | apt-mark hold zammad |
| 3 | apt update |
| 4 | apt upgrade |
| 5 | |
| 6 | # Continue with step 2 or 3 depending on your current state |
MrGeneration / Debian / Ubuntu Upgrade
Last active 4 months ago
This gist provides contextual copy paste options for Distribution upgrades with installed Zammad and PostgreSQL for Debian (10, 11, 12) and Ubuntu (18, 20, 22). Video context to this: https://youtu.be/IXp4VWU27wo
Revision 2a31e3606adb61fccf5d826ab7f6914e7346f53c
| 1 | sed -i 's/debian-security buster\/updates/ bookworm-security/g' /etc/apt/sources.list |
| 2 | sed -i 's/buster/bullseye/g' /etc/apt/sources.list |
| 3 | apt clean; apt update |
| 4 | apt upgrade |
| 5 | apt dist-upgrade |
| 6 | |
| 7 | pg_dropcluster --stop 13 main |
| 8 | pg_upgradecluster 11 main /var/lib/postgresql/13/ |
| 9 | |
| 10 | apt autoremove |
| 11 | shutdown -r now |
| 1 | sed -i 's/bionic/focal/g' /etc/apt/sources.list |
| 2 | apt clean; apt update |
| 3 | apt upgrade |
| 4 | apt dist-upgrade |
| 5 | |
| 6 | pg_dropcluster --stop 13 main |
| 7 | pg_upgradecluster 11 main /var/lib/postgresql/13/ |
| 8 | |
| 9 | apt autoremove |
| 10 | shutdown -r now |
| 1 | sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list |
| 2 | apt clean; apt update |
| 3 | apt upgrade |
| 4 | apt dist-upgrade |
| 5 | |
| 6 | pg_dropcluster --stop 13 main |
| 7 | pg_upgradecluster 13 main /var/lib/postgresql/15/ |
| 8 | |
| 9 | apt autoremove |
| 10 | shutdown -r now |
| 1 | sed -i 's/focal/jammy/g' /etc/apt/sources.list |
| 2 | apt clean; apt update |
| 3 | apt upgrade |
| 4 | apt dist-upgrade |
| 5 | |
| 6 | pg_dropcluster --stop 13 main |
| 7 | pg_upgradecluster 13 main /var/lib/postgresql/15/ |
| 8 | |
| 9 | apt autoremove |
| 10 | shutdown -r now |
| 1 | apt-mark unhold zammad |
| 2 | |
| 3 | # ADJUST /etc/apt/sources.list.d/zammad.list WITH YOUR OS-VERSION-NUMBER |
| 4 | # (bullseye: 11; bookworm: 12; focal: 20; jammy: 22) |
| 5 | |
| 6 | systemctl enable zammad |
| 7 | apt update |
| 8 | apt install zammad |