Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 2e8367023c09286a26dd177e17edc594 > scriptlet

abrt-1.1.18-1.fc14.i686.rpm

PREIN

/bin/sh
#uidgid pair 173:173 reserved in setup rhbz#670231
getent group abrt >/dev/null || groupadd -f -g 173 --system abrt
getent passwd abrt >/dev/null || useradd --system -g abrt -u 173 -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