Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1371 → Rev 1370

/alcasar.sh
896,7 → 896,6
[Install]
WantedBy=multi-user.target
EOF
chmod a+x /lib/systemd/system/chilli.service
# init file creation
[ -e /etc/init.d/chilli.default ] || mv /etc/init.d/chilli /etc/init.d/chilli.default
cat <<EOF > /usr/libexec/chilli
1537,12 → 1536,12
WantedBy=multi-user.target
EOF
# processes launched at boot time (SYSV)
for i in havp
for i in chilli havp
do
/sbin/chkconfig --add $i
done
# processes launched at boot time (Systemctl)
for i in alcasar-load_balancing nfsen mysqld httpd ntpd iptables ulogd dnsmasq dnsmasq-blacklist dnsmasq-whitelist radiusd dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli
for i in alcasar-load_balancing nfsen mysqld httpd ntpd iptables ulogd dnsmasq dnsmasq-blacklist dnsmasq-whitelist radiusd dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access
do
systemctl -q enable $i
done
/scripts/sbin/alcasar-bl.sh
126,12 → 126,15
# Adapt Toulouse BL to ALCASAR architecture (dnsmasq + DG + iptables)
-adapt | --adapt)
echo -n "Toulouse BlackList migration process. Please wait : "
if [ ! -e $DIR_SHARE/ossi-ip-wl ]
# Saving OSSI files (IP_WL, IP_BL, domain)
if [ -e $DIR_SHARE/ossi-ip-wl ]
then
cp $DIR_SHARE/ossi-ip-wl $DIR_tmp/ossi-ip-wl
else
touch $DIR_SHARE/ossi-ip-wl
chown apache $DIR_SHARE/ossi-ip-wl
fi
if [ -f $DIR_tmp/blacklists.tar.gz ] # when downloading the last version of the BL
if [ -f $DIR_tmp/blacklists.tar.gz ]
then
[ -d $DIR_DG_BL/ossi ] && mv $DIR_DG_BL/ossi $DIR_tmp
[ -e $DIR_IP_BL/ossi ] && mv $DIR_IP_BL/ossi $DIR_tmp/ossi-ip-bl
207,6 → 210,7
rm -f $FILE_tmp $FILE_ip_tmp
# Restoring ossi files
[ -e $DIR_tmp/ossi-ip-bl ] && mv $DIR_tmp/ossi-ip-bl $DIR_IP_BL/ossi
[ -e $DIR_tmp/ossi-ip-wl ] && mv $DIR_tmp/ossi-ip-wl $DIR_SHARE/ossi-ip-wl
rm -rf $DIR_tmp
echo
;;
/scripts/sbin/alcasar-uninstall.sh
15,11 → 15,11
echo "-----------------------------------------------------------------------------"
echo
#services_stop
for i in havp gammu-smsd
for i in chilli havp gammu-smsd
do
[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop && killall $i 2>/dev/null
done
for i in alcasar-load_balancing.service nfsen.service mysqld.service squid.service ntpd.service iptables.service ulogd.service dansguardian.service httpd.service radiusd.service freshclam.service dnsmasq.service named.service dhcpd.service chilli.service
for i in alcasar-load_balancing.service nfsen.service mysqld.service squid.service ntpd.service iptables.service ulogd.service dansguardian.service httpd.service radiusd.service freshclam.service dnsmasq.service named.service dhcpd.service
do
[ -e /lib/systemd/system/$i ] && systemctl disable $i && systemctl stop $i 1>/dev/null
done
89,11 → 89,9
[ -e /etc/chilli/alcasar-macallowed ] && rm /etc/chilli/alcasar-macallowed # if 2.7 and later, macallowed is replaced with macauth
if [ -e /etc/chilli.conf.default ] # >= V2.0
then
echo -en "\n- param_chilli(4) : "
echo -en "\n- param_chilli(2) : "
[ -e /etc/init.d/chilli.default ] && mv /etc/init.d/chilli.default /etc/init.d/chilli && echo -n "1, "
[ -e /usr/libexec/chilli ] && rm /usr/libexec/chilli && echo -n "2, "
[ -e /etc/chilli.conf.default ] && mv /etc/chilli.conf.default /etc/chilli.conf && echo -n "3, "
[ -e /lib/systemd/chilli.service ] && rm /lib/systemd/chilli.service && echo -n "4"
[ -e /etc/chilli.conf.default ] && mv /etc/chilli.conf.default /etc/chilli.conf && echo -n "2"
else # < V2.0
echo -en "\n- param_chilli(5) : "
[ -e /etc/chilli/functions.default ] && mv /etc/chilli/functions.default /etc/chilli/functions && echo -n "1, "