[DRE-commits] [SCM] unicorn.git branch, master, updated. upstream/4.3.1-26-g021fd00

Hleb Valoshka 375GNU at Gmail.COM
Sun Jun 24 08:08:11 UTC 2012


The following commit has been merged in the master branch:
commit 20659be1cde55de505932d916424fbdadf4102a3
Author: Hleb Valoshka <375GNU at Gmail.COM>
Date:   Sun Jun 24 10:43:54 2012 +0300

    Add basic prerm script

diff --git a/debian/changelog b/debian/changelog
index 5f2a4c1..a9deceb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+unicorn (4.3.1-2) UNRELEASED; urgency=low
+
+  * Add prerm hook
+
+ -- Hleb Valoshka <375gnu at gmail.com>  Sun, 24 Jun 2012 10:43:08 +0300
+
 unicorn (4.3.1-1) unstable; urgency=low
 
   * New upstream version
diff --git a/debian/unicorn.prerm b/debian/unicorn.prerm
new file mode 100644
index 0000000..68741da
--- /dev/null
+++ b/debian/unicorn.prerm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+  remove|deconfigure)
+    if [ -x /etc/init.d/unicorn ]; then
+      if [ -x /usr/sbin/invoke-rc.d ]; then
+        invoke-rc.d unicorn stop
+      else
+        /etc/init.d/unicorn stop
+      fi
+    fi
+  ;;
+esac
+
+#DEBHELPER#
+
+exit 0

-- 
unicorn.git



More information about the Pkg-ruby-extras-commits mailing list