[SCM] icecast2/master: Add preinst script, may need some work.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Dec 1 11:33:46 UTC 2010


The following commit has been merged in the master branch:
commit 9b73b7662a2010598afabb47e438b3a03ba82c67
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Dec 1 12:33:35 2010 +0100

    Add preinst script, may need some work.

diff --git a/debian/icecast2.preinst b/debian/icecast2.preinst
new file mode 100644
index 0000000..04155ac
--- /dev/null
+++ b/debian/icecast2.preinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    upgrade)
+	if [ -x /etc/init.d/icecast2 ]; then
+		if [ -x /usr/sbin/invoke-rc.d ]; then
+			invoke-rc.d icecast2 stop
+		else
+			/etc/init.d/icecast2 stop
+		fi
+	fi
+	;;
+esac
+
+#DEBHELPER#

-- 
icecast2 packaging



More information about the pkg-multimedia-commits mailing list