source: lliurex-java-panel/trunk/fuentes/debian/postinst @ 3671

Last change on this file since 3671 was 3671, checked in by jrpelegrina, 3 years ago

WIP in swing properties divert

File size: 594 bytes
Line 
1#!/bin/sh
2
3set -e
4
5#VARS
6SWING_FILE_OPENJDK8="/etc/java-8-openjdk/swing.properties"
7SWING_FILE_LLIUREX="/usr/share/lliurex-java-panel/swing.properties"
8PACKAGE_NAME="lliurex-java-panel"
9
10case "$1" in
11   configure)
12                if dpkg-divert --add --package ${OUR_PACKAGE} --rename  --divert ${SWING_FILE_OPENJDK8}.real ${SWING_FILE_OPENJDK8} ; then
13                        ln -fs ${SWING_FILE_LLIUREX} ${SWING_FILE_OPENJDK8}
14                else
15                        echo "Unable to divert file \"$SWING_FILE_OPENJDK8\"" >&2
16                fi
17                               
18   ;;
19
20   abort-upgrade|abort-remove|abort-deconfigure)
21   ;;
22
23   *)
24       exit 1
25   ;;
26esac
27
28#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.