Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > 886f3d20e06733268db3ccc8cb201b77 > scriptlet

apache-2.4.4-7.1.mga3.i586.rpm

PRETRANS

/bin/sh
# prevent symlink creation failure on update
if [ ! -d /etc/httpd/conf/sites.d ]; then
    mkdir -p /etc/httpd/conf/sites.d
    if [ -d /etc/httpd/conf/webapps.d ]; then
        mv -f /etc/httpd/conf/webapps.d/* /etc/httpd/conf/sites.d 2>/dev/null
        rmdir /etc/httpd/conf/webapps.d
    fi
    if [ -d /etc/httpd/conf/vhosts.d ]; then
        mv -f /etc/httpd/conf/vhosts.d/* /etc/httpd/conf/sites.d 2>/dev/null
        rmdir /etc/httpd/conf/vhosts.d
    fi
fi

PREUN

/bin/sh
/usr/share/rpm-helper/del-service apache $1 httpd

POSTIN

/bin/sh
/usr/bin/systemd-tmpfiles --create httpd.conf 
/usr/share/rpm-helper/add-service apache $1 httpd