From d17f7829b6c602865b22353ce33a347ef6fa9760 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 19 Nov 2013 14:49:53 +0100 Subject: [PATCH] debian: dbc_pgsql_createdb_encoding must be set in .postinst not .config --- debian/amue-authentic2.config | 1 - debian/amue-authentic2.postinst | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/amue-authentic2.config b/debian/amue-authentic2.config index f4a60e3..6a4bbc5 100644 --- a/debian/amue-authentic2.config +++ b/debian/amue-authentic2.config @@ -6,7 +6,6 @@ # source dbconfig-common shell library, and call the hook function if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then . /usr/share/dbconfig-common/dpkg/config.pgsql - dbc_pgsql_createdb_encoding="UTF8" dbc_go amue-authentic2 $@ fi diff --git a/debian/amue-authentic2.postinst b/debian/amue-authentic2.postinst index 3f3cf9d..26613cf 100644 --- a/debian/amue-authentic2.postinst +++ b/debian/amue-authentic2.postinst @@ -28,6 +28,7 @@ esac # source dbconfig-common shell library, and call the hook function if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then . /usr/share/dbconfig-common/dpkg/postinst.pgsql + dbc_pgsql_createdb_encoding="UTF8" dbc_generate_include=template:/etc/amue-authentic2/db.conf dbc_generate_include_args="-o template_infile=/usr/share/amue-authentic2/templates/db.conf -U" dbc_generate_include_owner="amue-authentic2"