[med-svn] [gadgetron] 01/01: gadgetron-config: add config postinst and prerm
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Apr 28 08:38:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository gadgetron.
commit be90d7c7caa1fb3c819a412cd5b027bf99df7c4a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Tue Apr 28 09:37:42 2015 +0100
gadgetron-config: add config postinst and prerm
---
debian/gadgetron-config.postinst | 10 ++++++++++
debian/gadgetron-config.prerm | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/debian/gadgetron-config.postinst b/debian/gadgetron-config.postinst
new file mode 100644
index 0000000..786d4d9
--- /dev/null
+++ b/debian/gadgetron-config.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+GADGETRON_CONFIG_DIR=/usr/share/gadgetron/config
+if [ ! -f $GADGETRON_CONFIG_DIR/gadgetron.xml ]; then
+ cp $GADGETRON_CONFIG_DIR/gadgetron.xml.example \
+ $GADGETRON_CONFIG_DIR/gadgetron.xml
+fi
+
+exit 0
diff --git a/debian/gadgetron-config.prerm b/debian/gadgetron-config.prerm
new file mode 100644
index 0000000..fbce503
--- /dev/null
+++ b/debian/gadgetron-config.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+GADGETRON_CONFIG_DIR=/usr/share/gadgetron/config
+if [ -f $GADGETRON_CONFIG_DIR/gadgetron.xml ]; then
+ rm $GADGETRON_CONFIG_DIR/gadgetron.xml
+fi
+
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/gadgetron.git
More information about the debian-med-commit
mailing list