diff options
author | root <root@rshg054.dnsready.net> | 2012-08-19 00:04:07 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-19 00:04:07 +0000 |
commit | c512f9eb344575ac6bce0b13729c05e1760cd094 (patch) | |
tree | 8d60a9bd559a941bba52a67170900c159d2024eb /testing/gdm/gdm.install | |
parent | 948da5eabcbf8d74270e661d0730ba1c203913f5 (diff) |
Sun Aug 19 00:04:07 UTC 2012
Diffstat (limited to 'testing/gdm/gdm.install')
-rw-r--r-- | testing/gdm/gdm.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/gdm/gdm.install b/testing/gdm/gdm.install new file mode 100644 index 000000000..c48faf4ae --- /dev/null +++ b/testing/gdm/gdm.install @@ -0,0 +1,30 @@ +pkgname=gdm + +post_install() { + getent group gdm >/dev/null 2>&1 || groupadd -g 120 gdm + getent passwd gdm > /dev/null 2>&1 || usr/sbin/useradd -c 'Gnome Display Manager' -u 120 -g gdm -d /var/lib/gdm -s /sbin/nologin gdm + passwd -l gdm > /dev/null + chown -R gdm:gdm /var/lib/gdm > /dev/null + + glib-compile-schemas /usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor + dconf update +} + +pre_upgrade() { + if [ -f /usr/share/gconf/schemas/${pkgname}.schemas ]; then + gconfpkg --uninstall ${pkgname} + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + glib-compile-schemas /usr/share/glib-2.0/schemas + dconf update + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor + getent passwd gdm >/dev/null 2>&1 && userdel gdm + getent group gdm >/dev/null 2>&1 && groupdel gdm +} |