-if [ -n "`getgid stunnel`" ]; then
- if [ "`getgid stunnel`" != "130" ]; then
- echo "Error: group stunnel doesn't have gid=130. Correct this before installing stunnel." 1>&2
- exit 1
- fi
-else
- /usr/sbin/groupadd -g 130 -r -f stunnel
-fi
-if [ -n "`id -u stunnel 2>/dev/null`" ]; then
- if [ "`id -u stunnel`" != "130" ]; then
- echo "Error: user stunnel doesn't have uid=130. Correct this before installing stunnel." 1>&2
- exit 1
- fi
-else
- /usr/sbin/useradd -u 130 -r -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel 1>&2
-fi
+%groupadd -g 130 stunnel
+%useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel