[med-svn] r16058 - in trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade: . pgsql

Emilien Klein e2jk-guest at moszumanska.debian.org
Tue Feb 18 19:00:21 UTC 2014


Author: e2jk-guest
Date: 2014-02-18 19:00:21 +0000 (Tue, 18 Feb 2014)
New Revision: 16058

Added:
   trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/
   trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.0.0
Removed:
   trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql
Log:
Move the upgrade scripts for dbconfig-common to the correct place (DBTYPE/VERSION instead of just DBTYPE)


Deleted: trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql	2014-02-18 10:11:40 UTC (rev 16057)
+++ trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql	2014-02-18 19:00:21 UTC (rev 16058)
@@ -1,23 +0,0 @@
-#!/bin/sh
-# database upgrade script for gnuhealth-server
-
-set -e
-
-# Source the config file from dbconfig-common
-. /etc/dbconfig-common/gnuhealth-server.conf
-
-GNUHEALTH_CONFFILE="/etc/gnuhealth/gnuhealth-server.conf"
-BACKUP_FILE="/var/lib/gnuhealth/backups/backup_${dbc_dbname}_`date +\%F_\%H-\%M-\%S`.sql"
-
-# Start printing output on a new line
-echo
-
-# Make a backup of the database prior to upgrading
-sudo -u ${dbc_dbuser} pg_dump gnuhealth > ${BACKUP_FILE}
-# Run the pre script provided by upstream
-sudo -u ${dbc_dbuser} python /usr/share/gnuhealth/scripts/upgrade/2.0/pre.py --pg="dbname=${dbc_dbname}"
-# Upgrade the gnuhealth database
-sudo -u ${dbc_dbuser} trytond --database=${dbc_dbname} --update=all --config=${GNUHEALTH_CONFFILE}
-
-exit 0
-

Copied: trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.0.0 (from rev 16057, trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.0.0	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.0.0	2014-02-18 19:00:21 UTC (rev 16058)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# database upgrade script for gnuhealth-server
+
+set -e
+
+# Source the config file from dbconfig-common
+. /etc/dbconfig-common/gnuhealth-server.conf
+
+GNUHEALTH_CONFFILE="/etc/gnuhealth/gnuhealth-server.conf"
+BACKUP_FILE="/var/lib/gnuhealth/backups/backup_${dbc_dbname}_`date +\%F_\%H-\%M-\%S`.sql"
+
+# Start printing output on a new line
+echo
+
+# Make a backup of the database prior to upgrading
+sudo -u ${dbc_dbuser} pg_dump gnuhealth > ${BACKUP_FILE}
+# Run the pre script provided by upstream
+sudo -u ${dbc_dbuser} python /usr/share/gnuhealth/scripts/upgrade/2.0/pre.py --pg="dbname=${dbc_dbname}"
+# Upgrade the gnuhealth database
+sudo -u ${dbc_dbuser} trytond --database=${dbc_dbname} --update=all --config=${GNUHEALTH_CONFFILE}
+
+exit 0
+




More information about the debian-med-commit mailing list