PREIN
/bin/sh
getent group eucalyptus >/dev/null || groupadd -r eucalyptus
## FIXME: Make QA (and Eucalyptus proper?) work with /sbin/nologin as the shell [RT:2092]
#getent passwd eucalyptus >/dev/null || \
# useradd -r -g eucalyptus -d /var/lib/eucalyptus -s /sbin/nologin \
# -c 'Eucalyptus' eucalyptus
getent passwd eucalyptus >/dev/null || \
useradd -r -g eucalyptus -d /var/lib/eucalyptus \
-c 'Eucalyptus' eucalyptus
POSTIN
/bin/sh
udevadm control --reload-rules
POSTUN
/bin/sh
# Reload udev rules on uninstall
if [ "$1" = "0" ]; then
/sbin/service udev-post reload || :
fi