Line 1... |
Line 1... |
1 |
|
1 |
|
2 |
#!/bin/bash
|
2 |
#!/bin/bash
|
3 |
# $Id: alcasar-uninstall.sh 1918 2016-06-01 14:49:47Z franck $
|
3 |
# $Id: alcasar-uninstall.sh 1921 2016-06-01 21:47:04Z richard $
|
4 |
|
4 |
|
5 |
# alcasar-uninstall.sh
|
5 |
# alcasar-uninstall.sh
|
6 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
6 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
7 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
# This script is distributed under the Gnu General Public License (GPL)
|
8 |
|
8 |
|
Line 13... |
Line 13... |
13 |
clear
|
13 |
clear
|
14 |
echo "-----------------------------------------------------------------------------"
|
14 |
echo "-----------------------------------------------------------------------------"
|
15 |
echo "** Uninstall/Update ALCASAR **"
|
15 |
echo "** Uninstall/Update ALCASAR **"
|
16 |
echo "-----------------------------------------------------------------------------"
|
16 |
echo "-----------------------------------------------------------------------------"
|
17 |
echo
|
17 |
echo
|
18 |
# logout all logged users (delete test in future version)
|
- |
|
19 |
if [ -e $DIR_BIN/alcasar-logout.sh ]; then
|
- |
|
20 |
$DIR_BIN/alcasar-logout.sh all
|
- |
|
21 |
else
|
- |
|
22 |
/usr/local/sbin/alcasar-logout.sh all
|
18 |
/usr/local/bin/alcasar-logout.sh all
|
23 |
fi
|
- |
|
24 |
# services_stop
|
19 |
# services_stop
|
25 |
echo "Stopping service : "
|
20 |
echo "Stopping service : "
|
26 |
/usr/local/bin/alcasar-sms.sh --stop
|
21 |
/usr/local/bin/alcasar-sms.sh --stop
|
27 |
for i in alcasar-load_balancing vnstat havp freshclam ntpd httpd radiusd mysqld dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole tinyproxy nfsen fail2ban iptables ulogd-ext-access ulogd-ssh ulogd-traceability dansguardian dnsmasq sshd chilli
|
22 |
for i in alcasar-load_balancing vnstat havp freshclam ntpd httpd radiusd mysqld dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole tinyproxy nfsen fail2ban iptables ulogd-ext-access ulogd-ssh ulogd-traceability dansguardian dnsmasq sshd chilli
|
28 |
do
|
23 |
do
|