[Spce-user] A/B upgrade schema, how to keep custom installed software
Henk
henkpls at hotmail.com
Fri Apr 29 03:26:52 EDT 2022
Hello Matthias,
Thank you for your quick reply! This will work for me.
Is there a way to add an "after upgrade script" to run automatically? So
maybe add a custom step to the upgrade procedure?
Regards,
Henk
On 28-Apr-22 17:34, Matthias Hohl wrote:
>
> 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.
>
> Regards,
>
> Henk Plessius
>
>
> --
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20220429/34582582/attachment-0002.html>
More information about the Spce-user
mailing list