X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Funscd.postinst;h=27b83e263790c37b4e80748b970e4fff1ae7387b;hb=6ffeb1aa0f49937b08cd171631ba8dda630cb9e7;hp=6340bc0de7f547bc00323b84cbbb2e975e59a3eb;hpb=196f930e9acf0652209d3454da8d6597061f71dd;p=unscd.git diff --git a/debian/unscd.postinst b/debian/unscd.postinst index 6340bc0..27b83e2 100644 --- a/debian/unscd.postinst +++ b/debian/unscd.postinst @@ -1,9 +1,14 @@ +#!/bin/sh + 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;