Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > 848501b238b8875a35611fee31787a93 > scriptlet

couchdb-3.1.1-1.mga8.x86_64.rpm

PREIN

/bin/sh
getent group couchdb >/dev/null || groupadd -r couchdb
getent passwd couchdb >/dev/null || \
useradd -r -g couchdb -d /var/lib/couchdb -s /bin/bash \
-c "Couchdb Database Server" couchdb
exit 0

PREUN

/bin/sh

 
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then 
        # Package removal, not upgrade 
        /usr/bin/systemctl --no-reload disable --now couchdb.service || : 
fi

POSTIN

/bin/sh

 
if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ]; then 
        # Initial installation 
        /usr/bin/systemctl --no-reload preset couchdb.service || : 
fi

POSTUN

/bin/sh

 
if [ $1 -ge 1 ] && [ -x /usr/bin/systemctl ]; then 
        # Package upgrade, not uninstall 
        /usr/bin/systemctl try-restart couchdb.service || : 
fi