[Pkg-javascript-commits] [SCM] javascript-common branch, master, updated. 7-22-g2d7cc38

Jean-Michel Vourgère jmv_deb at nirgal.com
Sun Jul 28 22:22:01 UTC 2013


The following commit has been merged in the master branch:
commit 093eccef67b25ffb5918cf32de9ace1724f07609
Author: Jean-Michel Vourgère <jmv_deb at nirgal.com>
Date:   Fri Jul 19 14:34:32 2013 +0200

    Fail silently on lighttpd reload if not installed

diff --git a/debian/javascript-common.postinst b/debian/javascript-common.postinst
index 1119533..72b581f 100644
--- a/debian/javascript-common.postinst
+++ b/debian/javascript-common.postinst
@@ -20,7 +20,10 @@ case "${1}" in
 		if [ ! -e /etc/lighttpd/conf-enabled/90-javascript-alias.conf ]
 		then
 			ln -s ../conf-available/90-javascript-alias.conf /etc/lighttpd/conf-enabled/90-javascript-alias.conf
-			invoke-rc.d lighttpd reload || true
+			if which invoke-rc.d > /dev/null && [ -x /etc/init.d/lighttpd ]
+			then
+				invoke-rc.d lighttpd reload || true
+			fi
 		fi
 		;;
 
diff --git a/debian/javascript-common.postrm b/debian/javascript-common.postrm
index 14cc486..dcce06d 100644
--- a/debian/javascript-common.postrm
+++ b/debian/javascript-common.postrm
@@ -20,7 +20,10 @@ case "${1}" in
 		if [ -L /etc/lighttpd/conf-enabled/90-javascript-alias.conf ]
 		then
 			rm -f /etc/lighttpd/conf-enabled/90-javascript-alias.conf
-			invoke-rc.d lighttpd reload || true
+			if which invoke-rc.d > /dev/null && [ -x /etc/init.d/lighttpd ]
+			then
+				invoke-rc.d lighttpd reload || true
+			fi
 		fi
 		if [ -d /etc/lighttpd/conf-enabled/ ]
 		then

-- 
javascript-common



More information about the Pkg-javascript-commits mailing list