From fa2b7a3ad966a81d7a027a32b5ba6b24da293fcc Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 11 Sep 2016 01:20:45 -0400 Subject: erp1: Hack to fix database LC_CTYPE Error: DBD::Pg::db do failed: ERROR: encoding "UTF8" does not match locale "en_US" DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1". --- (limited to 'hosts/erp1') diff --git a/hosts/erp1 b/hosts/erp1 index 3d5e236..de5b7e7 100644 --- a/hosts/erp1 +++ b/hosts/erp1 @@ -99,6 +99,8 @@ do_postinst() mv "${target}/etc/rc.local" "${target}/etc/rc.local.orig" cat >"${target}/etc/rc.local" <<-EOF #!/bin/sh -e + pg_dropcluster --stop 9.4 main + pg_createcluster --locale en_US.UTF-8 --start 9.4 main /usr/share/ledgersmb/tools/config-lsmb-db-user.sh ledgersmb LEDGERSMBINITIAL mv /etc/rc.local.orig /etc/rc.local EOF -- cgit v0.9.1