[debian-edu-commits] debian-edu/pkg-team/ 29/32: debian/gosa.prerm: Add file. Handle removal of symlinks created during postinst. (Closes: #715441).
Mike Gabriel
sunweaver at debian.org
Tue Apr 1 16:52:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository gosa.
commit eeb2cfc84afbf20be3445f38227562e4acdcd048
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Apr 1 18:43:11 2014 +0200
debian/gosa.prerm: Add file. Handle removal of symlinks created during postinst. (Closes: #715441).
---
debian/changelog | 3 +++
debian/gosa.prerm | 27 +++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 797b36d..0655cee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,9 @@ gosa (2.7.4+reloaded1-1) UNRELEASED; urgency=low
+ Install conffiles to location where they are expected by the
GOsa² WebGUI. Handle conffile moval in bin:package gracefully.
(Closes: #714922).
+ * debian/gosa.prerm:
+ + Add file. Handle removal of symlinks created during postinst.
+ (Closes: #715441).
-- Mike Gabriel <sunweaver at debian.org> Tue, 01 Apr 2014 16:36:31 +0200
diff --git a/debian/gosa.prerm b/debian/gosa.prerm
new file mode 100755
index 0000000..20c085b
--- /dev/null
+++ b/debian/gosa.prerm
@@ -0,0 +1,27 @@
+#!/bin/sh
+# prerm script for gosa
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+ remove|purge)
+ # remove symlinks created in postinst
+ for symlink in convert lpstat; do
+ if [ -h /usr/share/gosa/bin/$symlink ]; then
+ rm /usr/share/gosa/bin/$symlink
+ fi
+ done
+ rmdir --ignore-fail-on-non-empty /usr/share/gosa/bin
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git
More information about the debian-edu-commits
mailing list