at.pre-install 265 Bytes
Newer Older
msun's avatar
msun committed
1 2 3 4 5 6 7
#!/bin/sh

if ! getent group at >/dev/null; then
	addgroup -S at 2>/dev/null
fi

if ! getent passwd at >/dev/null; then
8
	adduser -S -H -s /bin/false -D at 2>/dev/null
msun's avatar
msun committed
9 10 11 12 13 14 15 16
fi

if [ -z `echo " $(groups at) " | grep ' at '`] ; then
	addgroup at at 2>/dev/null
fi

exit 0