~ubuntu-branches/ubuntu/precise/lubuntu-default-settings/precise

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-10-03 16:02:19 UTC
  • Revision ID: james.westby@ubuntu.com-20101003160219-bhpoesmduggr7v8z
Tags: 0.12
* debian/postinst:
 - Remove alternatives file if it's not a symlink (LP: #625485).
* debian/prerm:
 - Don't remove alternative on upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
 
5
# Remove alternative file if it's not a symlink, workaround for broken upgrade
 
6
# See bug #625485
 
7
if [ ! -h "/etc/alternatives/lxdm.conf" ] ; then
 
8
  rm "/etc/alternatives/lxdm.conf"
 
9
fi
 
10
 
5
11
if [ "$1" = configure ]; then
6
12
  update-alternatives --install /etc/lxdm/default.conf \
7
13
    lxdm.conf /etc/xdg/lubuntu/lxdm/lxdm.conf 60