Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > 0da105badc1f57a08dd7423a4acf1738 > scriptlet

abrt-1.1.13-2.fc14.i686.rpm

PREIN

/bin/sh
getent group abrt >/dev/null || groupadd -f --system abrt
getent passwd abrt >/dev/null || useradd --system -g abrt -d /etc/abrt -s /sbin/nologin abrt
exit 0

PREUN

/bin/sh
if [ "$1" -eq "0" ] ; then
  service abrtd stop >/dev/null 2>&1
  /sbin/chkconfig --del abrtd
fi
#systemd
if [ "$1" -eq "0" ] ; then
  /bin/systemctl stop abrtd.service >/dev/null 2>&1 || :
  /bin/systemctl disable abrtd.service >/dev/null 2>&1 || :
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add abrtd
fi
#systemd
#if [ $1 -eq 1 ]; then
# Enable (but don't start) the units by default
  /bin/systemctl enable abrtd.service >/dev/null 2>&1 || :
#fi

POSTUN

/bin/sh
#systemd
if [ $1 -ge 1 ] ; then
# On upgrade, reload init system configuration if we changed unit files
  /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

POSTTRANS

/bin/sh
if [ "$1" -eq "0" ]; then
    service abrtd condrestart >/dev/null 2>&1 || :
fi
#systemd
if [ "$1" -eq "0" ]; then
    /bin/systemctl try-restart abrtd.service >/dev/null 2>&1 || :
fi