[med-svn] r13442 - trunk/packages/gnuhealth/trunk/debian
Emilien Klein
e2jk-guest at alioth.debian.org
Mon Apr 29 20:03:41 UTC 2013
Author: e2jk-guest
Date: 2013-04-29 20:03:41 +0000 (Mon, 29 Apr 2013)
New Revision: 13442
Modified:
trunk/packages/gnuhealth/trunk/debian/postinst
trunk/packages/gnuhealth/trunk/debian/postrm
trunk/packages/gnuhealth/trunk/debian/preinst
trunk/packages/gnuhealth/trunk/debian/prerm
Log:
Comment out database user creation/db update and (re)starting of the Tryton server in the maintainer scripts, as all this logic needs to be rewritten
Modified: trunk/packages/gnuhealth/trunk/debian/postinst
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/postinst 2013-04-29 19:56:51 UTC (rev 13441)
+++ trunk/packages/gnuhealth/trunk/debian/postinst 2013-04-29 20:03:41 UTC (rev 13442)
@@ -40,32 +40,33 @@
chown ${GNUHEALTH_USER}:adm ${GNUHEALTH_LOGDIR}
chmod 0750 ${GNUHEALTH_LOGDIR}
- # Check if the gnuhealth database role already exists
- role=`psql -U postgres -c "\du" 2>/dev/null | grep gnuhealth | wc -l`
- if [ $role -eq 0 ]; then
- echo "not here"
- # Create the PostgreSQL database role
- else
- # Check if the gnuhealth database exists
- db=`psql -U postgres -l 2>/dev/null | grep gnuhealth | wc -l`
- if [ $db -eq 1 ]; then
- # Update the gnuhealth database
- trytond --database=gnuhealth --update=all
- else
- # The user has probably set up it's own database, prompt her
- # to manually upgrade its database
- db_reset gnuhealth/manualupgrade
- db_input high gnuhealth/manualupgrade || true
- db_go
- fi
- fi
-
- # Start the Tryton server
- if which invoke-rc.d >/dev/null 2>&1; then
- invoke-rc.d tryton-server start
- else
- /etc/init.d/tryton-server start
- fi
+ # TODO: needs to be reworked
+ ## Check if the gnuhealth database role already exists
+ #role=`psql -U postgres -c "\du" 2>/dev/null | grep gnuhealth | wc -l`
+ #if [ $role -eq 0 ]; then
+ # echo "not here"
+ # # Create the PostgreSQL database role
+ #else
+ # # Check if the gnuhealth database exists
+ # db=`psql -U postgres -l 2>/dev/null | grep gnuhealth | wc -l`
+ # if [ $db -eq 1 ]; then
+ # # Update the gnuhealth database
+ # trytond --database=gnuhealth --update=all
+ # else
+ # # The user has probably set up it's own database, prompt her
+ # # to manually upgrade its database
+ # db_reset gnuhealth/manualupgrade
+ # db_input high gnuhealth/manualupgrade || true
+ # db_go
+ # fi
+ #fi
+ #
+ ## Start the Tryton server
+ #if which invoke-rc.d >/dev/null 2>&1; then
+ # invoke-rc.d tryton-server start
+ #else
+ # /etc/init.d/tryton-server start
+ #fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
Modified: trunk/packages/gnuhealth/trunk/debian/postrm
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/postrm 2013-04-29 19:56:51 UTC (rev 13441)
+++ trunk/packages/gnuhealth/trunk/debian/postrm 2013-04-29 20:03:41 UTC (rev 13442)
@@ -43,12 +43,13 @@
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- # Start the Tryton server
- if which invoke-rc.d >/dev/null 2>&1; then
- invoke-rc.d tryton-server start
- else
- /etc/init.d/tryton-server start
- fi
+ # TODO: needs to be reworked
+ ## Start the Tryton server
+ #if which invoke-rc.d >/dev/null 2>&1; then
+ # invoke-rc.d tryton-server start
+ #else
+ # /etc/init.d/tryton-server start
+ #fi
;;
*)
Modified: trunk/packages/gnuhealth/trunk/debian/preinst
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/preinst 2013-04-29 19:56:51 UTC (rev 13441)
+++ trunk/packages/gnuhealth/trunk/debian/preinst 2013-04-29 20:03:41 UTC (rev 13442)
@@ -16,12 +16,13 @@
case "$1" in
install|upgrade)
- # Stop the Tryton server
- if which invoke-rc.d >/dev/null 2>&1; then
- invoke-rc.d tryton-server stop
- else
- /etc/init.d/tryton-server stop
- fi
+ # TODO: needs to be reworked
+ ## Stop the Tryton server
+ #if which invoke-rc.d >/dev/null 2>&1; then
+ # invoke-rc.d tryton-server stop
+ #else
+ # /etc/init.d/tryton-server stop
+ #fi
;;
abort-upgrade)
Modified: trunk/packages/gnuhealth/trunk/debian/prerm
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/prerm 2013-04-29 19:56:51 UTC (rev 13441)
+++ trunk/packages/gnuhealth/trunk/debian/prerm 2013-04-29 20:03:41 UTC (rev 13442)
@@ -28,12 +28,13 @@
case "$1" in
remove|upgrade|deconfigure)
- # Stop the Tryton server
- if which invoke-rc.d >/dev/null 2>&1; then
- invoke-rc.d tryton-server stop
- else
- /etc/init.d/tryton-server stop
- fi
+ # TODO: needs to be reworked
+ ## Stop the Tryton server
+ #if which invoke-rc.d >/dev/null 2>&1; then
+ # invoke-rc.d tryton-server stop
+ #else
+ # /etc/init.d/tryton-server stop
+ #fi
;;
failed-upgrade)
More information about the debian-med-commit
mailing list