diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-01-17 05:00:02 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-01-17 05:00:02 +0800 |
commit | 2933ac51a76891f46dbb648d9bf786b1daa06ad1 (patch) | |
tree | f9d899d04c37d9d3f658edd2a420737aac6c44ac /x11/gdm/pkg-install | |
parent | afaa4085a68c95147ef4afeb494cbfc0e78def28 (diff) | |
download | marcuscom-ports-2933ac51a76891f46dbb648d9bf786b1daa06ad1.tar marcuscom-ports-2933ac51a76891f46dbb648d9bf786b1daa06ad1.tar.gz marcuscom-ports-2933ac51a76891f46dbb648d9bf786b1daa06ad1.tar.bz2 marcuscom-ports-2933ac51a76891f46dbb648d9bf786b1daa06ad1.tar.lz marcuscom-ports-2933ac51a76891f46dbb648d9bf786b1daa06ad1.tar.xz marcuscom-ports-2933ac51a76891f46dbb648d9bf786b1daa06ad1.tar.zst marcuscom-ports-2933ac51a76891f46dbb648d9bf786b1daa06ad1.zip |
Pick a better home directory for the gdm user. This should avoid problems
where /var/gdm is unwritable, and is more inline with official GNOME
instructions.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10133 df743ca5-7f9a-e211-a948-0013205c9059
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 |