lubuntu-default-settings/debian/lubuntu-default-settings.postinst

23 lines
600 B
Plaintext
Raw Normal View History

2010-02-14 12:31:48 +01:00
#!/bin/sh -e
set -e
# Remove alternative file if it's not a symlink, workaround for broken upgrade
# See bug #625485
if [ -f /etc/alternatives/lxdm.conf ] ; then
if [ ! -h "/etc/alternatives/lxdm.conf" ] ; then
rm -f "/etc/alternatives/lxdm.conf"
fi
fi
if [ "$1" = "configure" ] ; then
2010-02-14 12:31:48 +01:00
update-alternatives --install /etc/lxdm/default.conf \
lxdm.conf /etc/xdg/lubuntu/lxdm/lxdm.conf 60
update-alternatives --install /etc/lightdm/lightdm-gtk-greeter.conf \
lightdm-gtk-greeter-config-derivative \
/etc/xdg/lubuntu/lightdm/lightdm-gtk-greeter.conf 30
2010-02-14 12:31:48 +01:00
fi
#DEBHELPER#
exit 0