void-packages/srcpkgs/gdm/INSTALL

51 lines
1.1 KiB
Text
Raw Normal View History

#
# This script takes care about perms in required dirs.
#
case "${ACTION}" in
post)
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
dconf update
;;
esac