]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/rootfiles/core/170/update.sh
2 ############################################################################
4 # This file is part of the IPFire Firewall. #
6 # IPFire is free software; you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation; either version 3 of the License, or #
9 # (at your option) any later version. #
11 # IPFire is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with IPFire; if not, write to the Free Software #
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
20 # Copyright (C) 2022 IPFire-Team <info@ipfire.org>. #
22 ############################################################################
24 .
/opt
/pakfire
/lib
/functions.sh
25 /usr
/local
/bin
/backupctrl exclude
>/dev
/null
2>&1
29 # Remove old core updates from pakfire cache to save space...
30 for (( i
=1; i
<=$core; i
++ )); do
31 rm -f /var
/cache
/pakfire
/core-upgrade-
*-$i.ipfire
35 /etc
/init.d
/rc.d
/unbound stop
46 /lib
/libnss_compat-2.
* \
49 /lib
/libnss_files-2.
* \
50 /lib
/libnss_hesiod-2.
* \
51 /lib
/libntfs-3g.so
.88* \
56 /lib
/libthread_db-1.0.so \
63 /usr
/lib
/libbfd-2.36.
* \
64 /usr
/lib
/libbind9-9.16
.2* \
65 /usr
/lib
/libbind9-9.16
.30.so \
67 /usr
/lib
/libdns-9.16
.30.so \
68 /usr
/lib
/libirs-9.16
.2* \
69 /usr
/lib
/libirs-9.16
.30.so \
70 /usr
/lib
/libisc-9.16
.2* \
71 /usr
/lib
/libisc-9.16
.30.so \
72 /usr
/lib
/libisccc-9.16
.2* \
73 /usr
/lib
/libisccc-9.16
.30.so \
74 /usr
/lib
/libisccfg-9.16
.2* \
75 /usr
/lib
/libisccfg-9.16
.30.so \
77 /usr
/lib
/libldap_r-
* \
78 /usr
/lib
/libns-9.16
.2* \
79 /usr
/lib
/libns-9.16
.30.so \
80 /usr
/lib
/libopenjp2.so
.2.3.
* \
81 /usr
/lib
/libpoppler.so
.11* \
82 /usr
/lib
/perl
5/site_perl
/5.32.1/Bundle
/LWP.pm \
83 /usr
/lib
/perl
5/site_perl
/5.32.1/File
/Listing.pm \
84 /usr
/lib
/perl
5/site_perl
/5.32.1/HTML
/Form.pm \
85 /usr
/lib
/perl
5/site_perl
/5.32.1/HTTP
/Cookies \
86 /usr
/lib
/perl
5/site_perl
/5.32.1/HTTP
/Negotiate.pm \
87 /usr
/lib
/perl
5/site_perl
/5.32.1/*-linux-thread-multi/auto
/Unix
/Syslog
/autosplit.ix \
88 /usr
/lib
/perl
5/site_perl
/5.32.1/*-linux-thread-multi/qd.pl \
89 /usr
/lib
/perl
5/site_perl
/5.32.1/LWP
/media.types \
90 /usr
/lib
/perl
5/site_perl
/5.32.1/LWP
/MediaTypes.pm \
91 /usr
/lib
/perl
5/site_perl
/5.32.1/LWP
/Protocol
/GHTTP.pm \
92 /usr
/lib
/perl
5/site_perl
/5.32.1/LWP
/Protocol
/http10.pm \
93 /usr
/lib
/perl
5/site_perl
/5.32.1/LWP
/Protocol
/https10.pm \
94 /usr
/lib
/perl
5/site_perl
/5.32.1/WWW \
95 /usr
/sbin
/ovpn-ccd-convert \
101 # update linker config
104 # Update Language cache
105 /usr
/local
/bin
/update-lang-cache
108 /usr
/local
/bin
/filesystem-cleanup
110 # Create directory for IPBlocklist feature
111 mkdir
-pv /var
/lib
/ipblocklist
112 chown nobody
:nobody
/var
/lib
/ipblocklist
114 # Rebuild fcrontab from scratch
117 # Update collectd.conf
118 sed -i /etc
/collectd.conf \
119 -e "/LoadPlugin entropy/d"
120 /etc
/init.d
/collectd restart
123 /etc
/init.d
/rc.d
/unbound start
124 /etc
/init.d
/rc.d
/suricata restart
126 # Harden mount options of /boot
127 sed -e -i "s@[[:space:]]*\/boot[[:space:]]*auto[[:space:]]*defaults[[:space:]]*@ \/boot auto defaults,nodev,noexec,nosuid @g" /etc
/fstab
129 # This update needs a reboot...
130 touch /var
/run
/need_reboot
133 /etc
/init.d
/fireinfo start
136 # Update grub config to display new core version
137 if [ -e /boot
/grub
/grub.cfg
]; then
138 grub-mkconfig
-o /boot
/grub
/grub.cfg
143 # Don't report the exitcode last command