diff options
author | root <root@rshg054.dnsready.net> | 2012-04-25 00:01:35 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-25 00:01:35 +0000 |
commit | 98bf2ac3fdd6f7bcb6ce45c932fc13c07fecc03f (patch) | |
tree | 00d9cdbfdc8ef5d7a4a7159a8c6439008509e662 /extra/gdm/gdm.install | |
parent | 9988621f899d7d4ae5fd0a4a32a4ba3abc5a527d (diff) |
Wed Apr 25 00:01:35 UTC 2012
Diffstat (limited to 'extra/gdm/gdm.install')
-rw-r--r-- | extra/gdm/gdm.install | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/extra/gdm/gdm.install b/extra/gdm/gdm.install index fda42d319..c48faf4ae 100644 --- a/extra/gdm/gdm.install +++ b/extra/gdm/gdm.install @@ -6,14 +6,13 @@ post_install() { passwd -l gdm > /dev/null chown -R gdm:gdm /var/lib/gdm > /dev/null - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor - gconfpkg --install ${pkgname} - glib-compile-schemas usr/share/glib-2.0/schemas + glib-compile-schemas /usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor dconf update } -pre_remove() { - if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then +pre_upgrade() { + if [ -f /usr/share/gconf/schemas/${pkgname}.schemas ]; then gconfpkg --uninstall ${pkgname} fi } @@ -23,9 +22,9 @@ post_upgrade() { } post_remove() { - glib-compile-schemas usr/share/glib-2.0/schemas + glib-compile-schemas /usr/share/glib-2.0/schemas dconf update - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + 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 } |