Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 101691 | Differences between
and this patch

Collapse All | Expand All

(-)freenx-0.4.4.org/nxsetup (-2 / +7 lines)
Lines 116-128 useradd_nx() Link Here
116
	# no, its a "normal" useradd
116
	# no, its a "normal" useradd
117
	else
117
	else
118
		USERADD_OPTIONS="-d $NX_HOME_DIR -s $PATH_BIN/nxserver"
118
		USERADD_OPTIONS="-d $NX_HOME_DIR -s $PATH_BIN/nxserver"
119
		[ -n $SETUP_GID ] && USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS"
119
		# gid specified?
120
		if [ -n "$SETUP_GID" ]
121
		then
122
			USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS"
123
		fi
120
		# uid specified?
124
		# uid specified?
121
		if [ -n "$SETUP_UID" ]
125
		if [ -n "$SETUP_UID" ]
122
		then
126
		then
123
			USERADD_OPTIONS="-u $SETUP_UID $USERADD_OPTIONS"
127
			USERADD_OPTIONS="-u $SETUP_UID $USERADD_OPTIONS"
128
		fi
124
		# Is it a SuSE?
129
		# Is it a SuSE?
125
		elif [ -f /etc/SuSE-release ]
130
		if [ -f /etc/SuSE-release ]
126
		then
131
		then
127
			USERADD_OPTIONS="-r $USERADD_OPTIONS"
132
			USERADD_OPTIONS="-r $USERADD_OPTIONS"
128
		fi
133
		fi

Return to bug 101691