export pg_hba_dir=/var/lib/pgsql/data/
return
fi
- echo "No pg_hba_dir found"
- echo "exiting without error, but gforge db will not work"
- exit 0
+ echo "No pg_hba_dir found — exiting with error"
+ exit 1
}
# this function export in var pg_version the version of postgresql
return
fi
echo "No database found online on port 5432"
- echo "Couldn't initialize or upgrade gforge database."
- echo "Please see postgresql documentation"
- echo "and run dpkg-reconfigure -plow gforge-db-postgresql"
- echo "once the problem is solved"
- echo "exiting without error, but gforge db will not work"
- echo "right now"
- exit 0
+ echo "Couldn't initialize or upgrade gforge database"
+ exit 1
}
[ Roland Mas ]
* Reinstate code running the Mediawiki SQL initialisation code from the
package's postinst.
+ * Fail configuration of the -db-postgresql package if no database is
+ available, to prevent other packages from breaking things due to
+ misconfiguration.
[ Thorsten Glaser ]
* SECURITY: Upon user deletion, remove their Unix account as well
* SECURITY: Do not disclose inaccessible groups on user_home/toplist
- -- Thorsten Glaser <tg@mirbsd.de> Mon, 03 Sep 2012 14:07:16 +0200
+ -- Roland Mas <lolando@debian.org> Fri, 21 Sep 2012 16:05:28 +0200
fusionforge (5.1.1-8) unstable; urgency=low
export pg_hba_dir=/etc/postgresql/${pg_version}/main
else
echo "No database found online on port 5432"
- echo "Couldn't initialize or upgrade @OLDPACKAGE@ database."
- echo "Please see postgresql documentation"
- echo "and run dpkg-reconfigure -plow @OLDPACKAGE@-db-postgresql"
- echo "once the problem is solved"
- echo "exiting without error, but @OLDPACKAGE@ db will not work"
- echo "right now"
- exit 0
+ echo "Couldn't initialize or upgrade @OLDPACKAGE@ database"
+ exit 1
fi
else
export pg_hba_dir=/etc/postgresql
then
export pg_hba_dir=/etc/postgresql/${pg_version}/main
else
- echo "No database found online on port 5432"
- echo "Couldn't initialize or upgrade @OLDPACKAGE@ database."
- echo "Please see postgresql documentation"
- echo "and run dpkg-reconfigure -plow @OLDPACKAGE@-db-postgresql"
- echo "once the problem is solved"
- echo "exiting without error, but @OLDPACKAGE@ db will not work"
- echo "right now"
+ echo "No database found online on port 5432."
+ echo "Assuming the database was dropped and no action is needed."
+ echo "Exiting without error, but make sure there are no leftovers."
exit 0
fi
else