diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /extra/gdm/gdm.install | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'extra/gdm/gdm.install')
-rw-r--r-- | extra/gdm/gdm.install | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/extra/gdm/gdm.install b/extra/gdm/gdm.install index 4f15730f0..d43f06c2f 100644 --- a/extra/gdm/gdm.install +++ b/extra/gdm/gdm.install @@ -1,5 +1,3 @@ -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 @@ -7,25 +5,18 @@ post_install() { chown -R gdm:gdm /var/lib/gdm > /dev/null chown root:gdm /var/log/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 } |