[med-svn] [conquest-dicom-server] 12/17: Forgot DEBHELPER placeholder in maintscripts...

Pablo Lorenzzoni spectra at moszumanska.debian.org
Mon Feb 3 16:47:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

spectra pushed a commit to branch master
in repository conquest-dicom-server.

commit 907a08ad6a513fb6f851f7201ef24bd820f217fe
Author: Pablo Lorenzzoni <spectra at debian.org>
Date:   Sat Feb 1 17:33:32 2014 +0000

    Forgot DEBHELPER placeholder in maintscripts...
    
    ... and some args.
---
 debian/conquest-dicom-server.postinst | 8 ++++----
 debian/conquest-dicom-server.postrm   | 7 ++++---
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/conquest-dicom-server.postinst b/debian/conquest-dicom-server.postinst
index cc26d49..2dafaa4 100644
--- a/debian/conquest-dicom-server.postinst
+++ b/debian/conquest-dicom-server.postinst
@@ -31,14 +31,12 @@ setup_db() {
     /etc/init.d/$PACKAGE regen
   fi
   echo "If it's the first time you install $PACKAGE, disregard any error" \
-       " messages about absent database tables."
+       "messages about absent database tables."
 }
 
 # Change ownership of files
 chown_files() {
-  for target in $VARDIR $ETCDIR $LOGDIR; do
-    chown -R $USER:$GROUP $target
-  done
+  chown -R $USER:$GROUP $VARDIR $ETCDIR $LOGDIR > /dev/null || true
 }
 
 case "$1" in
@@ -57,4 +55,6 @@ case "$1" in
     ;;
 esac
 
+#DEBHELPER#
+
 exit 0
diff --git a/debian/conquest-dicom-server.postrm b/debian/conquest-dicom-server.postrm
index 41e4e11..967931f 100644
--- a/debian/conquest-dicom-server.postrm
+++ b/debian/conquest-dicom-server.postrm
@@ -19,8 +19,7 @@ remove_user_group() {
 
 # Chown root:root what remains
 chown_root() {
-  chown -R root:root $VARDIR > /dev/null || true
-  chown -R root:root $LOGDIR > /dev/null || true
+  chown -R root:root $VARDIR $LOGDIR $ETCDIR > /dev/null || true
 }
 
 case "$1" in
@@ -29,7 +28,7 @@ case "$1" in
     remove_user_group
     ;;
 
-  remove)
+  remove|upgrade|deconfigure|abort-upgrade|failed-upgrade|disappear|abort-install)
     ;;
 
   *)
@@ -38,4 +37,6 @@ case "$1" in
     ;;
 esac
 
+#DEBHELPER#
+
 exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/conquest-dicom-server.git



More information about the debian-med-commit mailing list