3 # ----------------------------------------------------------------------
4 # AlternC - Web Hosting System
5 # Copyright (C) 2000-2012 by the AlternC Development Team.
7 # ----------------------------------------------------------------------
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License (GPL)
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # To read the license please visit http://www.gnu.org/copyleft/gpl.html
21 # ----------------------------------------------------------------------
22 # Purpose of file: Install awstat conf files.
23 # ----------------------------------------------------------------------
25 if [ "$1" = "before-reload" ]
27 if [ -f /usr/lib/alternc/awstats.cache.php ]
29 /usr/lib/alternc/awstats.cache.php
31 # we disable the package-installed awstats cron to prevent bothering us with error emails
32 echo "Removing awstats packge-installed crontab, in favor of AlternC's one"
33 rm -f /etc/cron.d/awstats