Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 397c9c0494b400f6631d34d0b62d13ec > scriptlet

gsi-openssh-server-6.4p1-5.fc20.x86_64.rpm

PREIN

/bin/sh
getent group sshd >/dev/null || groupadd -g 74 -r sshd || :
getent passwd sshd >/dev/null || \
  useradd -c "Privilege-separated SSH" -u 74 -g sshd \
  -s /sbin/nologin -r -d /var/empty/sshd sshd 2> /dev/null || :

PREUN

/bin/sh

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

POSTIN

/bin/sh

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        systemctl preset gsisshd.service gsisshd.socket >/dev/null 2>&1 || : 
fi

POSTUN

/bin/sh

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

Triggers

gsi-openssh-server < 5.8p2-1

/bin/sh
/usr/bin/systemd-sysv-convert --save gsisshd >/dev/null 2>&1 || :
/sbin/chkconfig --del gsisshd >/dev/null 2>&1 || :
/bin/systemctl try-restart gsisshd.service >/dev/null 2>&1 || :

gsi-openssh-server < 5.9p1-6

/bin/sh
/bin/systemctl --no-reload disable gsisshd-keygen.service >/dev/null 2>&1 || :