Hi, All.
This scriplet will not do what we need:
preinstall scriptlet (using /bin/sh):
/usr/sbin/groupadd -r kamailio 2> /dev/null || :
/usr/sbin/useradd -r -g kamailio -s /bin/false -c "Kamailio daemon" \
-d /var/run/kamailio kamailio 2> /dev/null || :
The cause is, that utils groupadd and useradd are located under /sbin directory in OEL7.x
Solution: to add an if statement to determine which path to use, like:
if [ -e /sbin/useradd ]; then ......; else .....; fi
or use RPM macro to determine which EL is actually used.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub