Fix a bug when removing an account using web-add.sh del

All lines matching ${account}* are removed instead of only the good one
in /etc/cron.d/awstats.
This commit is contained in:
Romain Dessort 2015-09-24 15:21:25 +02:00
parent 0b1c452ee5
commit 17743c5ba9

View file

@ -365,7 +365,7 @@ op_del() {
a2dissite $login
rm /etc/apache2/sites-available/$login
rm /etc/awstats/awstats.$login.conf
sed -i.bak "/-config=$login/d" /etc/cron.d/awstats
sed -i.bak "/-config=$login /d" /etc/cron.d/awstats
apache2ctl configtest
set +x