[med-svn] r18915 - trunk/packages/orthanc-webviewer/trunk/debian

Sebastien Jodogne jodogne-guest at moszumanska.debian.org
Fri Mar 6 11:51:27 UTC 2015


Author: jodogne-guest
Date: 2015-03-06 11:51:20 +0000 (Fri, 06 Mar 2015)
New Revision: 18915

Modified:
   trunk/packages/orthanc-webviewer/trunk/debian/control
   trunk/packages/orthanc-webviewer/trunk/debian/postinst
   trunk/packages/orthanc-webviewer/trunk/debian/postrm
Log:
restart of Orthanc after installation/removal

Modified: trunk/packages/orthanc-webviewer/trunk/debian/control
===================================================================
--- trunk/packages/orthanc-webviewer/trunk/debian/control	2015-03-06 11:50:11 UTC (rev 18914)
+++ trunk/packages/orthanc-webviewer/trunk/debian/control	2015-03-06 11:51:20 UTC (rev 18915)
@@ -16,9 +16,9 @@
                libjs-jquery-ui,
                libjs-jquery-ui-theme-base,
                libjsoncpp-dev,
-               orthanc-dev | liborthancclient-dev (= 0.8.6),
                libpng-dev,
                libsqlite3-dev,
+               orthanc-dev,
                uuid-dev,
                zlib1g-dev
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc-webviewer/trunk/

Modified: trunk/packages/orthanc-webviewer/trunk/debian/postinst
===================================================================
--- trunk/packages/orthanc-webviewer/trunk/debian/postinst	2015-03-06 11:50:11 UTC (rev 18914)
+++ trunk/packages/orthanc-webviewer/trunk/debian/postinst	2015-03-06 11:51:20 UTC (rev 18915)
@@ -6,15 +6,22 @@
     configure)
 	# Restart the Orthanc service
 	# https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
-	if which invoke-rc.d >/dev/null 2>&1; then
-     	    invoke-rc.d orthanc restart
-     	else
-     	    /etc/init.d/orthanc restart
+	if [ -x /etc/init.d/orthanc ]; then
+	    if which invoke-rc.d >/dev/null 2>&1; then
+     		invoke-rc.d orthanc restart
+     	    else
+     		/etc/init.d/orthanc restart
+     	    fi
      	fi
 	;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
 	;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+        ;;
 esac
 
 #DEBHELPER#

Modified: trunk/packages/orthanc-webviewer/trunk/debian/postrm
===================================================================
--- trunk/packages/orthanc-webviewer/trunk/debian/postrm	2015-03-06 11:50:11 UTC (rev 18914)
+++ trunk/packages/orthanc-webviewer/trunk/debian/postrm	2015-03-06 11:51:20 UTC (rev 18915)
@@ -6,15 +6,22 @@
     purge|remove|upgrade)
 	# Restart the Orthanc service
 	# https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
-	if which invoke-rc.d >/dev/null 2>&1; then
-     	    invoke-rc.d orthanc restart
-     	else
-     	    /etc/init.d/orthanc restart
+	if [ -x /etc/init.d/orthanc ]; then
+	    if which invoke-rc.d >/dev/null 2>&1; then
+     		invoke-rc.d orthanc restart
+     	    else
+     		/etc/init.d/orthanc restart
+     	    fi
      	fi
 	;;
 
     failed-upgrade|abort-install|abort-upgrade|disappear)
 	;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+        ;;
 esac
 
 #DEBHELPER#




More information about the debian-med-commit mailing list