Sophie

Sophie

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

BackupPC-3.1.0-16.fc14.i686.rpm

PREIN

/bin/sh
/usr/sbin/useradd -d /var/lib/BackupPC -r -s /sbin/nologin backuppc 2> /dev/null || :

PREUN

/bin/sh
if [ $1 = 0 ]; then
        service backuppc stop > /dev/null 2>&1 || :
        chkconfig --del backuppc || :
fi

POSTIN

/bin/sh
(
     # Install/update Selinux policy
     semodule -i /usr/share/selinux/packages/BackupPC/BackupPC.pp
     # files created by app
     restorecon -R /etc/BackupPC
     restorecon -R /var/log/BackupPC
) &>/dev/null
chkconfig --add backuppc || :
service httpd condrestart > /dev/null 2>&1 || :
/usr/sbin/usermod -a -G backuppc apache || :

POSTUN

/bin/sh
service httpd condrestart > /dev/null 2>&1 || :
if [ "$1" -eq "0" ]; then
     (
     # Remove the SElinux policy.
     semodule -r BackupPC || :
     )&>/dev/null
fi