Subversion Repositories ALCASAR

Rev

Rev 2969 | Rev 2975 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2969 Rev 2970
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2969 2021-07-09 22:40:56Z rexy $
2
#  $Id: alcasar.sh 2970 2021-07-13 12:07:44Z rexy $
3
 
3
 
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 199... Line 199...
199
		then
199
		then
200
			rm -f /var/tmp/alcasar-conf*
200
			rm -f /var/tmp/alcasar-conf*
201
		else
201
		else
202
# Create the archive of conf files
202
# Create the archive of conf files
203
			$DIR_SCRIPTS/alcasar-conf.sh --create
203
			$DIR_SCRIPTS/alcasar-conf.sh --create
-
 
204
# avoid lack of local DNS resolution when unbound is updated (alcasar <= V5.3)
-
 
205
			local_unbound_unit=`ls /etc/systemd/system/unbound* 2>/dev/null | wc -w`
-
 
206
			if [ $local_unbound_unit -ne 4 ]; then
-
 
207
				cp -f /lib/systemd/system/unbound*.service /etc/systemd/system/
-
 
208
			fi
204
			mode="update"
209
			mode="update"
205
		fi
210
		fi
206
	fi
211
	fi
207
# Free /var (when updating) and test free space
212
# Free /var (when updating) and test free space
208
	[ -d /var/log/netflow ] && rm -rf /var/log/netflow  # remove old porttracker RRD database
213
	[ -d /var/log/netflow ] && rm -rf /var/log/netflow  # remove old porttracker RRD database