Skip to content

Commit

Permalink
Update adduser.sh
Browse files Browse the repository at this point in the history
Fix a syntax error in the creation of users on Solaris 11.2
  • Loading branch information
pedroflor authored Jun 26, 2017
1 parent 1c4e812 commit 727122e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/adduser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 727122e

Please sign in to comment.