POSTIN
/bin/sh
if [ $1 -eq 1 ]; then if [ ! -f /etc/awstats/awstats.`hostname`.conf ]; then /bin/cat /etc/awstats/awstats.model.conf | \ /usr/bin/perl -p -e 's|^SiteDomain=.*$|SiteDomain="'`hostname`'"|; s|^HostAliases=.*$|HostAliases="REGEX[^.*'${HOSTNAME//./\\\\.}'\$]"|; ' > /etc/awstats/awstats.`hostname`.conf || : fi fi
POSTUN
/bin/sh
if [ $1 -ne 0 ]; then /sbin/service httpd condrestart >/dev/null 2>&1 fi