Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2453 → Rev 2454

/scripts/alcasar-uninstall.sh
54,12 → 54,12
fi
echo "Stopping service : "
/usr/local/bin/alcasar-sms.sh --stop
for i in $services
for i in $services
do
if [ -e /lib/systemd/system/$i.service ]
if [ -e /lib/systemd/system/$i.service ]
then
/usr/bin/systemctl disable $i.service
/usr/bin/systemctl stop $i.service 1>/dev/null
/usr/bin/systemctl stop $i.service 1>/dev/null
sleep 1
else
echo "The service $i.service doesn't exist !"
157,7 → 157,7
sleep 1
 
echo -en "\n- antivirus (5) : "
if [ -e /etc/init.d/havp ]
if [ -e /etc/init.d/havp ]
then
[ -e /etc/havp/havp.config.default ] && mv /etc/havp/havp.config.default /etc/havp/havp.config && echo -n "1, "
userdel -r havp 2>/dev/null && echo -n "2, "
169,7 → 169,7
sleep 1
 
echo -en "\n- tinyproxy (2) : "
if [ -e /etc/init.d/tinyproxy ]
if [ -e /etc/init.d/tinyproxy ]
then
[ -e /etc/tinyproxy/tinyproxy.conf.default ] && mv /etc/tinyproxy/tinyproxy.conf.default /etc/tinyproxy/tinyproxy.conf && echo -n "1, "
userdel -r tinyproxy 2>/dev/null && echo -n "2"
222,8 → 222,8
i=3
for filter in `ls /etc/fail2ban/filter.d/alcasar_*`
do
i=`expr $i + 1`
rm $filter && echo -n "$i, "
i=`expr $i + 1`
rm $filter && echo -n "$i, "
done
[ -e /lib/systemd/system/fail2ban.service.default ] && mv /lib/systemd/system/fail2ban.service.default /lib/systemd/system/fail2ban.service && echo -n "8"
sleep 1
232,8 → 232,8
i=1
for cron in `ls /etc/cron.d/alcasar-*`
do
rm $cron && echo -n "$i, "
i=`expr $i + 1`
rm $cron && echo -n "$i, "
i=`expr $i + 1`
done
[ -e /etc/crontab.default ] && mv /etc/crontab.default /etc/crontab && echo -n "10, "
[ -e /etc/anacrontab.default ] && mv /etc/anacrontab.default /etc/anacrontab && echo -n "11"