Subversion Repositories ALCASAR

Rev

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

Rev 3099 Rev 3103
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 3099 2022-12-28 11:30:30Z rexy $
2
# $Id: alcasar-conf.sh 3103 2022-12-30 23:45:23Z rexy $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by REXY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 192... Line 192...
192
		$DIR_BIN/alcasar-bl.sh -reload
192
		$DIR_BIN/alcasar-bl.sh -reload
193
# admin profile update (admin + manager + backup)
193
# admin profile update (admin + manager + backup)
194
		$DIR_BIN/alcasar-profil.sh --list
194
		$DIR_BIN/alcasar-profil.sh --list
195
# Apply changes between versions
195
# Apply changes between versions
196
##   V5.4 --> V5.5   ##
196
##   V5.4 --> V5.5   ##
-
 
197
		# new rule for SMTP output flows
197
		[ -e $DIR_ETC/alcasar-iptables-local.sh ] && cp $DIR_ETC/alcasar-iptables-local.sh $DIR_ETC/alcasar-iptables-local.sh.old && cp $CURRENT_DIR/conf/etc/alcasar-iptables-local.sh $DIR_ETC/   # new rule for SMTP output flows
198
		[ -e $DIR_ETC/alcasar-iptables-local.sh ] && cp $DIR_ETC/alcasar-iptables-local.sh $DIR_ETC/alcasar-iptables-local.sh.old && cp $CURRENT_DIR/conf/etc/alcasar-iptables-local.sh $DIR_ETC/
-
 
199
##   V5.5 --> V6.0
198
##   V5.5 --> V6.0   ## remove dnsmasq service
200
		## remove dnsmasq service
199
		[ -e /etc/dnsmasq-whitelist.conf ] && rm -f /etc/dnsmasq*
201
		[ -e /etc/dnsmasq-whitelist.conf ] && rm -f /etc/dnsmasq*
200
		[ -e /etc/systemd/system/dnsmasq-whitelist.service ] && rm -f /etc/systemd/system/dnsmasq* && urpme dnsmasq
202
		[ -e /etc/systemd/system/dnsmasq-whitelist.service ] && rm -f /etc/systemd/system/dnsmasq* && urpme dnsmasq
201
# Remove the update folder
203
# Remove the update folder
202
		rm -rf $DIR_UPDATE
204
		rm -rf $DIR_UPDATE
203
		;;
205
		;;