Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=lightdm
- post_install() {
- getent group lightdm >/dev/null 2>&1 || groupadd -g 121 lightdm
- getent passwd lightdm > /dev/null 2>&1 || usr/sbin/useradd -c 'LightDM Display Manager' -u 121 -g lightdm -d /var/lib/lightdm -s /sbin/nologin lightdm
- passwd -l lightdm > /dev/null
- chown -R lightdm:lightdm /var/lib/lightdm > /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
- }
- pre_remove() {
- 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
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
- getent passwd lightdm >/dev/null 2>&1 && userdel lightdm
- getent group lightdm >/dev/null 2>&1 && groupdel lightdm
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement