Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d269ffab478bdbbf66d9f9edc165c4f1 > scriptlet

omniORB-servers-4.1.6-2.fc15.i686.rpm

PREIN

/bin/sh
getent group omniORB >/dev/null || groupadd -r omniORB
getent passwd omniORB >/dev/null || \
useradd -r -g omniORB -d /var/lib/omniORB -s /sbin/nologin \
-c "OmniNames Naming Service" omniORB
exit 0

PREUN

/bin/sh
if [ $1 -eq 0 ] ; then
  # Package removal, not upgrade
  /bin/systemctl disable omniNames.service > /dev/null 2>&1 || :
  /bin/systemctl stop omniNames.service > /dev/null 2>&1 || :
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
  # Package install, not upgrade
  /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

POSTUN

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