2010-04-15 01:53:44 +00:00
|
|
|
#
|
|
|
|
# This script takes care about perms in required dirs.
|
|
|
|
#
|
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
2012-09-27 14:21:55 +00:00
|
|
|
if [ ! -d var/gdm ]; then
|
|
|
|
mkdir -p var/gdm
|
|
|
|
fi
|
|
|
|
chmod 1770 var/gdm
|
|
|
|
chown root:gdm var/gdm
|
|
|
|
|
|
|
|
if [ ! -d var/lib/gdm/greeter ]; then
|
|
|
|
mkdir -p var/lib/gdm/greeter
|
|
|
|
fi
|
|
|
|
chmod 0755 var/lib/gdm/greeter
|
|
|
|
chown gdm:gdm var/lib/gdm/greeter
|
|
|
|
|
|
|
|
if [ ! -d var/lib/gdm/.config ]; then
|
|
|
|
mkdir -p var/lib/gdm/.config
|
|
|
|
fi
|
|
|
|
chmod 1755 var/lib/gdm/.config
|
|
|
|
chown gdm:gdm var/lib/gdm/.config
|
|
|
|
|
|
|
|
if [ ! -d var/lib/gdm/.config/dconf ]; then
|
|
|
|
mkdir -p var/lib/gdm/.config/dconf
|
|
|
|
fi
|
|
|
|
chmod 0755 var/lib/gdm/.config/dconf
|
|
|
|
chown gdm:gdm var/lib/gdm/.config/dconf
|
|
|
|
|
|
|
|
if [ ! -d var/lib/gdm/.local/share/applications ]; then
|
|
|
|
mkdir -p var/lib/gdm/.local/share/applications
|
|
|
|
fi
|
2014-03-28 14:38:52 +00:00
|
|
|
chown -R gdm:gdm var/lib/gdm/.local
|
2012-09-27 14:21:55 +00:00
|
|
|
|
|
|
|
if [ ! -d var/cache/gdm ]; then
|
|
|
|
mkdir -p var/cache/gdm
|
|
|
|
fi
|
|
|
|
chmod 1755 var/cache/gdm
|
|
|
|
chown root:gdm var/cache/gdm
|
|
|
|
|
|
|
|
if [ ! -d var/log/gdm ]; then
|
|
|
|
mkdir -p var/log/gdm
|
|
|
|
fi
|
|
|
|
chmod 1770 var/log/gdm
|
|
|
|
chown gdm:gdm var/log/gdm
|
|
|
|
|
2011-10-19 12:52:17 +00:00
|
|
|
dconf update
|
2015-01-13 00:33:22 +00:00
|
|
|
|
|
|
|
# Use XDG_RUNTIME_DIR for gdm via pam_env(8)
|
2015-10-17 10:55:04 +00:00
|
|
|
echo "XDG_RUNTIME_DIR=/tmp/gdm-runtime-dir" > var/lib/gdm/.pam_environment
|
2010-04-15 01:53:44 +00:00
|
|
|
;;
|
|
|
|
esac
|