Subversion Repositories ALCASAR

Rev

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

Rev 2809 Rev 2833
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 2809 2020-04-12 17:35:46Z rexy $
2
# $Id: alcasar-uninstall.sh 2833 2020-06-14 10:13:18Z rexy $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
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 194... Line 194...
194
}
194
}
195
 
195
 
196
cron ()
196
cron ()
197
{
197
{
198
# /etc/cron.d/alcasar-daemon-watchdog is removed at the beginning of this script
198
# /etc/cron.d/alcasar-daemon-watchdog is removed at the beginning of this script
199
echo -en "(13) : "
199
echo -en "(12) : "
200
	i=1
200
	i=1
201
	for cron in `ls /etc/cron.d/alcasar-* 2>/dev/null`
201
	for cron in `ls /etc/cron.d/alcasar-* 2>/dev/null`
202
	do
202
	do
203
		rm $cron && echo -n "$i, "
203
		rm $cron && echo -n "$i, "
204
		i=`expr $i + 1`
204
		i=`expr $i + 1`
205
	done
205
	done
206
	[ -e /etc/crontab.default ] && mv /etc/crontab.default /etc/crontab && echo -n "12, "
206
	[ -e /etc/crontab.default ] && mv /etc/crontab.default /etc/crontab && echo -n "11, "
207
	[ -e /etc/anacrontab.default ] && mv /etc/anacrontab.default /etc/anacrontab && echo -n "13"
207
	[ -e /etc/anacrontab.default ] && mv /etc/anacrontab.default /etc/anacrontab && echo -n "12"
208
}
208
}
209
 
209
 
210
fail2ban ()
210
fail2ban ()
211
{
211
{
212
	echo -en "(7) : "
212
	echo -en "(7) : "