aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/packages/deb/ubuntu-focal/debian/tigervncserver.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/packages/deb/ubuntu-focal/debian/tigervncserver.prerm')
-rw-r--r--contrib/packages/deb/ubuntu-focal/debian/tigervncserver.prerm22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/packages/deb/ubuntu-focal/debian/tigervncserver.prerm b/contrib/packages/deb/ubuntu-focal/debian/tigervncserver.prerm
new file mode 100644
index 00000000..2e8e77c4
--- /dev/null
+++ b/contrib/packages/deb/ubuntu-focal/debian/tigervncserver.prerm
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ] ; then
+ BIN=/usr/bin
+ SBIN=/usr/sbin
+ update-alternatives --remove \
+ vncsession $SBIN/tigervncsession
+ update-alternatives --remove \
+ Xvnc $BIN/Xtigervnc
+ update-alternatives --remove \
+ x0vncserver $BIN/x0tigervncserver
+ update-alternatives --remove \
+ vncpasswd $BIN/tigervncpasswd
+ update-alternatives --remove \
+ tigervncconfig $BIN/tigervncconfig
+fi
+
+#DEBHELPER#
+
+exit 0