[Spce-user] A/B upgrade schema, how to keep custom installed software

Matthias Hohl matthias.hohl at telematica.at
Thu Apr 28 11:34:51 EDT 2022

Hello Henk,


we had the same topic after migration to 9.5.x on PRO version and we solved it with an “after upgrade script” and symlinks.


The files inside the directory /etc/ngcp-config/ will not be removed after upgrade, so we placed the config files there and installed the software and create the symlinks to the files in our “telematica” directory.


I hope I could help you with this work-a-round.


For an example with fail2ban we did it this way:



### Fetch latest packages and create directories

apt-get update

mkdir /ngcp-data/telematica


### Install Packages

apt-get install -y fail2ban


echo "fail2ban installed"



### Create Fail2Ban Symlinks

ln -s /etc/ngcp-config/telematica/fail2ban/jail.local /etc/fail2ban/jail.local

ln -s /etc/ngcp-config/telematica/fail2ban/fail2ban.local /etc/fail2ban/fail2ban.local

ln -s /etc/ngcp-config/telematica/fail2ban/filter.d/kamailio-lb.local /etc/fail2ban/filter.d/kamailio-lb.local

ln -s /etc/ngcp-config/telematica/fail2ban/filter.d/kamailio-proxy.local /etc/fail2ban/filter.d/kamailio-proxy.local


echo "fail2ban configured"


systemctl restart fail2ban



Von: Henk <henkpls at hotmail.com> 
Gesendet: Donnerstag, 28. April 2022 17:28
An: spce-user at lists.sipwise.com
Betreff: [Spce-user] A/B upgrade schema, how to keep custom installed software


Hi all,

I just upgraded to mr9.5.4 and noticed that the A/B upgrade schema takes 
a lot of extra work to reinstall all software that disappears when 
upgrading. For example I'm using letsencrypt; fail2ban and ipset 
(ipset-blacklist), which is very useful to block unwanted scanners.

Is there an easy way to keep those extra programs?

Also it would be nice to have some documentation on how to rollback the 
system to a previous version.


Henk Plessius

Spce-user mailing list
Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20220428/361dccb7/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5022 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20220428/361dccb7/attachment-0002.p7s>

More information about the Spce-user mailing list