Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 28c85d3c517fcc5bd7b23a3d8618930f > scriptlet

giis-4.6.2-3.fc18.i686.rpm

PREUN

/bin/sh

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        /usr/bin/systemctl --no-reload disable giis.service > /dev/null 2>&1 || : 
        /usr/bin/systemctl stop giis.service > /dev/null 2>&1 || : 
fi 
rm -rf /usr/share/giis/*

POSTIN

/bin/sh

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        /usr/bin/systemctl preset giis.service >/dev/null 2>&1 || : 
fi 
# rmdir needed, because giis check it on install, and if it exists fail installation
rmdir /usr/share/giis && giis -i &>/dev/null

POSTUN

/bin/sh

/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : 
if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        /usr/bin/systemctl try-restart giis.service >/dev/null 2>&1 || : 
fi 

# https://fedoraproject.org/wiki/Packaging:SysVInitScript#Initscripts_in_addition_to_systemd_unit_files