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
|
|
|
|
chmod 0755 var/lib/gdm/.local/share/applications
|
|
|
|
chown gdm:gdm var/lib/gdm/.local/share/applications
|
|
|
|
|
|
|
|
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
|
2010-04-15 01:53:44 +00:00
|
|
|
;;
|
|
|
|
esac
|