Author: e2jk-guest Date: 2013-04-24 18:58:18 +0000 (Wed, 24 Apr 2013) New Revision: 13402
Modified: trunk/packages/gnuhealth/trunk/debian/postinst Log: Structure to check if the gnuhealth database role already exists, create it if not and upgrade the gnuhealth database. Modified: trunk/packages/gnuhealth/trunk/debian/postinst =================================================================== --- trunk/packages/gnuhealth/trunk/debian/postinst 2013-04-24 15:52:31 UTC (rev 13401) +++ trunk/packages/gnuhealth/trunk/debian/postinst 2013-04-24 18:58:18 UTC (rev 13402) @@ -20,6 +20,18 @@ case "$1" in configure) + # Check if the gnuhealth database role already exists + #if database role doesn't exist + # Create the PostgreSQL database role + #else + #if database gnuhealth exists + # 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 + #fi + #fi # Start the Tryton server if which invoke-rc.d >/dev/null 2>&1; then invoke-rc.d tryton-server start _______________________________________________ debian-med-commit mailing list debian-med-commit@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit