diff options
Diffstat (limited to 'x11/gdm/pkg-install')
-rw-r--r-- | x11/gdm/pkg-install | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/x11/gdm/pkg-install b/x11/gdm/pkg-install index cfcc5f743..29d467924 100644 --- a/x11/gdm/pkg-install +++ b/x11/gdm/pkg-install @@ -25,12 +25,12 @@ 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" + if [ x"${uhome}" = x"/nonexistent" -o x"${uhome}" = x"/var/gdm" ]; then + ${PW} usermod ${USER} -d "${PKG_PREFIX}/etc/gdm/home" fi else if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -d "/var/gdm" -s /sbin/nologin -c "GNOME Display Manager" + -d "${PKG_PREFIX}/etc/gdm/home" -s /sbin/nologin -c "GNOME Display Manager" then echo "Added user \"${USER}\"." else @@ -39,8 +39,6 @@ POST-INSTALL) fi fi ${MKDIR} -p /var/gdm - ${MKDIR} -p /var/gdm/.gconf - ${MKDIR} -p /var/gdm/.gconfd ${MKDIR} -p /var/log/gdm ${CHMOD} 0755 /var/log/gdm ${CHOWN} root:wheel /var/log/gdm @@ -51,6 +49,9 @@ POST-INSTALL) ${MKDIR} -p /var/lib/gdm ${CHMOD} 1770 /var/lib/gdm ${CHOWN} root:${GROUP} /var/lib/gdm + ${MKDIR} -p ${PKG_PREFIX}/etc/gdm/home + ${CHOWN} ${USER}:${GROUP} ${PKG_PREFIX}/etc/gdm/home + ${CHMOD} 0755 ${PKG_PREFIX}/etc/gdm/home ${MKDIR} -p ${PKG_PREFIX}/etc/dm/Sessions exit 0 |