X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Funscd.postinst;h=27b83e263790c37b4e80748b970e4fff1ae7387b;hb=dfac96c4471030546a06cbd016dec0a557062a04;hp=75d0cf4ed1d75154ca05b039e22b0c36a2c5dca7;hpb=32428bae61395a03c102aec011fb17e4d7ee6446;p=unscd.git 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;