summaryrefslogtreecommitdiffstats
path: root/x11/gdm/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gdm/pkg-install')
-rw-r--r--x11/gdm/pkg-install6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11/gdm/pkg-install b/x11/gdm/pkg-install
index b775c1072..7e880ccb0 100644
--- a/x11/gdm/pkg-install
+++ b/x11/gdm/pkg-install
@@ -24,9 +24,13 @@ POST-INSTALL)
if ${PW} user show "${USER}" 2>/dev/null; then
echo "You already have a user \"${USER}\", so I will use it."
+ uhome=`${PW} user show ${USER} | awk -F: '{print $9}'`
+ if [ x"${uhome}" = x"/nonexistent" ]; then
+ ${PW} usermod ${USER} -d "/var/gdm"
+ fi
else
if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d "/nonexistent" -s /sbin/nologin -c "GNOME Display Manager"
+ -d "/var/gdm" -s /sbin/nologin -c "GNOME Display Manager"
then
echo "Added user \"${USER}\"."
else