X-Git-Url: https://git.donarmstrong.com/?p=unscd.git;a=blobdiff_plain;f=debian%2Funscd.postinst;h=27b83e263790c37b4e80748b970e4fff1ae7387b;hp=75d0cf4ed1d75154ca05b039e22b0c36a2c5dca7;hb=6ffeb1aa0f49937b08cd171631ba8dda630cb9e7;hpb=4d1d84f14dc1eb9aabe6dc972df3cc628d54e5b3 diff --git a/debian/unscd.postinst b/debian/unscd.postinst index 75d0cf4..27b83e2 100644 --- a/debian/unscd.postinst +++ b/debian/unscd.postinst @@ -5,7 +5,10 @@ set -e case "$1" in configure) # Create the unscd user - if [ -x /usr/sbin/adduser ] && [ -x /usr/bin/getent ] && [ -x /usr/sbin/addgroup ]; then + if which adduser >/dev/null 2>&1 && + which getent >/dev/null 2>&1 && + which id >/dev/null 2>&1 && + which addgroup >/dev/null 2>&1; then if ! getent group unscd >/dev/null 2>&1; then addgroup --system unscd; fi;