void-packages/srcpkgs/gdm/INSTALL

20 lines
485 B
Plaintext

#
# This script takes care about perms in required dirs.
#
case "${ACTION}" in
post)
if [ ! -d var/log/gdm ]; then
mkdir -p var/log/gdm
chown root:gdm var/log/gdm
fi
[ ! -d var/cache/gdm ] && mkdir -p var/cache/gdm
chown gdm:gdm var/lib/gdm > /dev/null
chown -R gdm:gdm var/lib/gdm/.gconf.mandatory
# 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
;;
esac