Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > db0bcffbc4e226991fa9753c98ee3b17 > scriptlet

awstats-7.0-4.fc14.noarch.rpm

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