Subversion Repositories ALCASAR

Rev

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

Rev 3201 Rev 3206
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3201 2024-05-28 17:21:34Z rexy $
2
#  $Id: alcasar.sh 3206 2024-06-16 22:31:29Z 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, unbound, gammu, 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, unbound, gammu, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 207... Line 207...
207
		if [ "$response" = "2" ]
207
		if [ "$response" = "2" ]
208
		then
208
		then
209
			rm -f /var/tmp/alcasar-conf*
209
			rm -f /var/tmp/alcasar-conf*
210
		else
210
		else
211
# Create the archive of conf files
211
# Create the archive of conf files
212
			$DIR_SCRIPTS/alcasar-conf.sh --create
212
			$DIR_DEST_BIN/alcasar-conf.sh --create
213
# avoid lack of local DNS resolution when unbound is updated (alcasar <= V5.3)
213
# avoid lack of local DNS resolution when unbound is updated (alcasar <= V5.3)
214
			local_unbound_unit=`ls /etc/systemd/system/unbound* 2>/dev/null | wc -w`
214
			local_unbound_unit=`ls /etc/systemd/system/unbound* 2>/dev/null | wc -w`
215
			if [ $local_unbound_unit -ne 4 ]; then
215
			if [ $local_unbound_unit -ne 4 ]; then
216
				cp -f /lib/systemd/system/unbound*.service /etc/systemd/system/
216
				cp -f /lib/systemd/system/unbound*.service /etc/systemd/system/
217
			fi
217
			fi
Line 2428... Line 2428...
2428
			fi
2428
			fi
2429
			read response
2429
			read response
2430
		done
2430
		done
2431
		if [ "$response" = "o" ] || [ "$response" = "O" ] || [ "$response" = "Y" ] || [ "$response" = "y" ]
2431
		if [ "$response" = "o" ] || [ "$response" = "O" ] || [ "$response" = "Y" ] || [ "$response" = "y" ]
2432
		then
2432
		then
2433
			$DIR_SCRIPTS/alcasar-conf.sh --create
2433
			$DIR_DEST_BIN/alcasar-conf.sh --create
2434
		else
2434
		else
2435
			rm -f /var/tmp/alcasar-conf*
2435
			rm -f /var/tmp/alcasar-conf*
2436
		fi
2436
		fi
2437
# Uninstall the running version
2437
# Uninstall the running version
2438
		$DIR_DEST_BIN/alcasar-uninstall.sh -full
2438
		$DIR_DEST_BIN/alcasar-uninstall.sh -full