#!/bin/sh -e # checking jondo-daemon account uid=`getent passwd jondo-daemon | cut -d ":" -f 3` # if there is the uid the account is there and we can do # the sanit(ar)y checks otherwise we can safely create it. if [ "$uid" ]; then if [ $uid -ge 100 ] && [ $uid -le 999 ]; then echo "jondo-daemon uid check: ok" else echo "ERROR: jondo-daemon account has a non-system uid!" echo "correct this problem" exit 1 fi else adduser --quiet --system --disabled-password --home /var/lib/jondo --shell /bin/bash --group jondo-daemon fi #DEBHELPER#