summaryrefslogtreecommitdiff
path: root/extra/gdm/gdm.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gdm/gdm.install')
-rw-r--r--extra/gdm/gdm.install11
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
}