PATH=/usr/xpg4/bin:/usr/bin:/usr/sbin:/sbin export PATH ETCDIR=${PKG_INSTALL_ROOT}/etc # check, whether the group webservd exists egrep -s '^webservd:' ${ETCDIR}/group if [ $? -ne 0 ]; then echo " WARNING: For security reason ocspd should be run as user with the group 'webservd'. This group is not part of your ${ETCDIR}/group ! Please setup such an group! E.g. using: groupadd -g 80 webservd " BREAK="true" fi # check, whether a user webservd exists egrep -s '^webservd:' ${ETCDIR}/passwd if [ $? -ne 0 ]; then echo " WARNING: For security reason ocspd should be run as user 'webservd'. This user is not part of your ${ETCDIR}/passwd ! Please setup such an account! E.g.: useradd -c 'WebServer Reserved UID' -d / \\ -u 80 -g webservd -s /bin/true webservd " BREAK="true" fi if [ "$BREAK" = "true" ]; then exit 3 fi exit 0