Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 005fd6f9cc6c5fc91054aa96e6819173 > scriptlet

php-eaccelerator-0.9.6.1-9.fc14.i686.rpm

PREUN

/bin/sh
# Upon last removal (not update), clean all cache files
if [ $1 -eq 0 ]; then
    rm -rf /var/cache/php-eaccelerator/* &>/dev/null || :
fi

POSTIN

/bin/sh
# We don't want to require "httpd" in case PHP is used with some other web
# server or without any, but we do want the owner of this directory to default
# to apache for a working "out of the box" experience on the most common setup.
#
# We can't store numeric ownerships in %files and have it work, so "fix" here,
# but only change the ownership if it's the current user (which is root), which
# allows users to manually change ownership and not have it change back.

# Create the ghost'ed directory with default ownership and mode
if [ ! -d /var/cache/php-eaccelerator ]; then
    mkdir -p /var/cache/php-eaccelerator
    chown 48:48 /var/cache/php-eaccelerator
    chmod 0750 /var/cache/php-eaccelerator
fi