source: lliurex-base-files/trunk/fuentes/debian/prerm @ 7266

Last change on this file since 7266 was 7266, checked in by hectorgh, 2 years ago

wip release-upgrades

  • Property svn:executable set to *
File size: 465 bytes
Line 
1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = remove ] ; then
7       
8        ORIGINAL_UPGRADE_FILE="/etc/update-manager/release-upgrades"
9        NEW_DIVERTED_FILE="/usr/share/lliurex-base-files/release-upgrades/release-upgrades.diverted"
10        PKG="lliurex-base-files"
11
12        if [ -L $ORIGINAL_UPGRADE_FILE ]; then
13
14                rm -rf $ORIGINAL_UPGRADE_FILE || true
15
16                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UPGRADE_FILE"
17
18
19        fi
20
21fi
22#DEBHELPER#
23
24exit 0
Note: See TracBrowser for help on using the repository browser.