2010-04-15 03:53:44 +02:00
|
|
|
#
|
|
|
|
# This script takes care about perms in required dirs.
|
|
|
|
#
|
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
2011-03-05 01:11:49 +01:00
|
|
|
if [ ! -d var/log/gdm ]; then
|
|
|
|
mkdir -p var/log/gdm
|
|
|
|
chown root:gdm var/log/gdm
|
|
|
|
fi
|
2011-03-08 17:00:17 +01:00
|
|
|
[ ! -d var/cache/gdm ] && mkdir -p var/cache/gdm
|
2011-03-05 01:11:49 +01:00
|
|
|
chown gdm:gdm var/lib/gdm > /dev/null
|
|
|
|
chown -R gdm:gdm var/lib/gdm/.gconf.mandatory
|
2011-10-10 11:46:55 +02:00
|
|
|
# Check that gdm user also is in the video group.
|
|
|
|
if groups gdm|grep -vq video; then
|
|
|
|
usermod -a -G video gdm
|
|
|
|
echo "Added gdm user to the system video group."
|
|
|
|
fi
|
2010-04-15 03:53:44 +02:00
|
|
|
;;
|
|
|
|
esac
|