[med-svn] r2896 - trunk/packages/gnumed-server/trunk/debian
tille at alioth.debian.org
tille at alioth.debian.org
Sun Jan 4 08:54:10 UTC 2009
Author: tille
Date: 2009-01-04 08:54:10 +0000 (Sun, 04 Jan 2009)
New Revision: 2896
Added:
trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap
trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap.8
trunk/packages/gnumed-server/trunk/debian/manpages
Removed:
trunk/packages/gnumed-server/trunk/debian/postinst
Modified:
trunk/packages/gnumed-server/trunk/debian/changelog
trunk/packages/gnumed-server/trunk/debian/install
Log:
Provide bootstrap helper script
Modified: trunk/packages/gnumed-server/trunk/debian/changelog
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/changelog 2009-01-04 06:06:54 UTC (rev 2895)
+++ trunk/packages/gnumed-server/trunk/debian/changelog 2009-01-04 08:54:10 UTC (rev 2896)
@@ -1,3 +1,10 @@
+gnumed-server (0v9-3) experimental; urgency=low
+
+ * Do not bootstrap in postinst and provide a script in
+ /usr/sbin instead
+
+ -- Andreas Tille <tille at debian.org> Sun, 04 Jan 2009 09:28:32 +0100
+
gnumed-server (0v9-2) experimental; urgency=low
* Call bootstraping code in postinst
Added: trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap (rev 0)
+++ trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap 2009-01-04 08:54:10 UTC (rev 2896)
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if ! psql -t -d template1 -c "show lc_ctype;" | grep -q -e C -e UTF-8 ; then
+ echo "Your PostgreSQL installation seems not to have lc_ctype UTF-8 or C."
+ echo "This will most probably lead to failures of the GNUmed server installation."
+ exit -1
+fi
+cd /var/lib/gnumed/server/bootstrap
+GM_LOG_BASE="/var/log/gnumed/server" ./bootstrap-latest.sh
Added: trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap.8
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap.8 (rev 0)
+++ trunk/packages/gnumed-server/trunk/debian/gnumed-server_bootstrap.8 2009-01-04 08:54:10 UTC (rev 2896)
@@ -0,0 +1,18 @@
+.TH GNUMED-SERVER_BOOTSTRAP 8 "2009 January 4th" "Manual for bootstraping GNUmed Server"
+
+.SH NAME
+.B gnumed-server_bootstrap
+- bootstrap SQL database for GNUmed
+
+.SH SYNOPSIS
+.B gnumed-server_bootstrap
+
+.SH DESCRIPTION
+.B gnumed-server_bootstrap
+is a simple helper script which is provided by the Debian
+GNU/Linux distribution to simplify bootstraping the GNUmed
+database.
+
+.SH AUTHOR:
+This manual page was written by Andreas Tille <tille at debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
Modified: trunk/packages/gnumed-server/trunk/debian/install
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/install 2009-01-04 06:06:54 UTC (rev 2895)
+++ trunk/packages/gnumed-server/trunk/debian/install 2009-01-04 08:54:10 UTC (rev 2896)
@@ -1 +1,2 @@
-server/sql var/lib/gnumed/server
+server/sql var/lib/gnumed/server
+debian/gnumed-server_bootstrap usr/sbin
Added: trunk/packages/gnumed-server/trunk/debian/manpages
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/manpages (rev 0)
+++ trunk/packages/gnumed-server/trunk/debian/manpages 2009-01-04 08:54:10 UTC (rev 2896)
@@ -0,0 +1 @@
+debian/gnumed-server_bootstrap.8
Deleted: trunk/packages/gnumed-server/trunk/debian/postinst
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/postinst 2009-01-04 06:06:54 UTC (rev 2895)
+++ trunk/packages/gnumed-server/trunk/debian/postinst 2009-01-04 08:54:10 UTC (rev 2896)
@@ -1,40 +0,0 @@
-#!/bin/sh
-# postinst script for gnumed-server
-
-set -e
-
-# summary of how this script can be called:
-# * <postinst> `configure' <most-recently-configured-version>
-# * <old-postinst> `abort-upgrade' <new version>
-# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-# <new-version>
-# * <postinst> `abort-remove'
-# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-# <failed-install-package> <version> `removing'
-# <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
- configure)
- if ! psql -t -d template1 -c "show lc_ctype;" | grep -q -e C -e UTF-8 ; then
- echo "Your PostgreSQL installation seems not to have lc_ctype UTF-8 or C."
- echo "This will most probably lead to failures of the GNUmed server installation."
- fi
- cd /var/lib/gnumed/server/bootstrap
- GM_LOG_BASE="/var/log/gnumed/server" ./bootstrap-latest.sh
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
-
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
More information about the debian-med-commit
mailing list