# set PID and LOG directories if they were not set
28
test -z "$PIDDIR" && PIDDIR=$VARDIR/run
29
test -z "$LOGDIR" && LOGDIR=$VARDIR/log
19
[ -z "${PIDDIR}" ] && PIDDIR=${VARDIR}/run
20
[ -z "${LOGDIR}" ] && LOGDIR=${VARDIR}/log
30
21
31
22
# test if user exists
32
test "$user" = "$USER" || su "$user" -c "echo" > /dev/null 2>&1 || { echo "@progtitle@ configuration problem: User $user does not exist or cannot be su'd to."; exit 1; }
23
[ X"${user}" = X"${USER}" ] || su "${user}" -c "echo" > /dev/null 2>&1 || { echo "@progtitle@ configuration problem: User ${user} does not exist or cannot be su'd to."; exit 1; }