From 727122e4a4710dd56c706db981aaf468a0702acf Mon Sep 17 00:00:00 2001 From: Pedro Flor Date: Mon, 26 Jun 2017 00:14:11 -0400 Subject: [PATCH] Update adduser.sh Fix a syntax error in the creation of users on Solaris 11.2 --- src/init/adduser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init/adduser.sh b/src/init/adduser.sh index d9df5de8d..fdf0bb4cb 100755 --- a/src/init/adduser.sh +++ b/src/init/adduser.sh @@ -74,7 +74,7 @@ else for U in ${USER} ${USER_MAIL} ${USER_REM}; do if ! grep "^${U}" /etc/passwd > /dev/null 2>&1; then - if [ "$UNAME" = "OpenBSD" ]; then + if [ "$UNAME" = "OpenBSD" ] || [ "$UNAME" = "SunOS" ]; then ${USERADD} -d "${DIR}" -s ${OSMYSHELL} -g "${GROUP}" "${U}" else ${USERADD} "${U}" -d "${DIR}" -s ${OSMYSHELL} -g "${GROUP}"