blob: 08b1b0d8775d5c2841b8d83cb34a6d8007b8b4be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
port=gdm
getent group gdm > /dev/null 2>&1 || /usr/sbin/groupadd -g 21 gdm
getent passwd gdm > /dev/null 2>&1 || /usr/sbin/useradd -c 'Gnome Display Manager' -u 21 -g gdm -d /var/lib/gdm -s /sbin/nologin gdm
/bin/passwd -l gdm
/bin/chown -R gdm:gdm /var/lib/gdm
# corrige le répertoire de gdm
sed "s|gdm:x:21:21:GDM Daemon User:/dev/null:/sbin/nologin|gdm:x:21:21:GDM Daemon User:/var/lib/gdm:/sbin/nologin|" -i /etc/passwd
# gconf schemas
gconfpkg --install $port
# glib schemas
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
# scrolls
SCROLLS="`pkginfo -l $port | grep usr/share/omf/.*\.omf$`"
for SCROLL in $SCROLLS
do
scrollkeeper-install -q -p /var/lib/scrollkeeper /$SCROLL > /dev/null
done
# icon cache
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
# End of file
|