Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 085dadf011d60a8777adcd639c21239c > scriptlet

awstats-7.0-9.fc17.noarch.rpm

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
  if [ ! -f /etc/awstats/awstats.`hostname`.conf ]; then
    /usr/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