#!/bin/sh # postinst script for x2gothinclient-minidesktop-mate # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) glib-compile-schemas /usr/share/glib-2.0/schemas/ update-alternatives --install \ /usr/share/images/desktop-base/desktop-background \ desktop-background \ /usr/share/backgrounds/x2go/x2gothinclient-minidesktop_background.svg 72 ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installdeb/13.24.1 dpkg-maintscript-helper rm_conffile /etc/lightdm/lightdm.conf 1.5.0.1-2 -- "$@" # End automatically added section # Drop the ligthdm.conf dpkg diversion (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948181) # # This needs to run after dpkg-maintscript-helper calls handled in the above DEBHELPER block. if dpkg --compare-versions "$2" le "1.5.0.1-2" ; then # Clean up an early age mess (dpkg-divert on conffile /etc/lightdm/lightdm.conf) if dpkg-divert --list | grep lightdm.conf.disabled-by-x2gotce 1>/dev/null 2>/dev/null; then dpkg-divert --package x2gothinclient-minidesktop --rename --remove /etc/lightdm/lightdm.conf fi fi exit 0