summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-09-11 01:20:45 (EDT)
committer P. J. McDermott <pj@pehjota.net>2016-09-11 01:20:45 (EDT)
commitfa2b7a3ad966a81d7a027a32b5ba6b24da293fcc (patch)
tree89ed5ebe7475e683435f1925f764a56cf64a5a19 /hosts
parent84e09208e27ff364bfb0fb5c5544bad53ebdfa4d (diff)
downloadpc-inst-fa2b7a3ad966a81d7a027a32b5ba6b24da293fcc.zip
pc-inst-fa2b7a3ad966a81d7a027a32b5ba6b24da293fcc.tar.gz
pc-inst-fa2b7a3ad966a81d7a027a32b5ba6b24da293fcc.tar.bz2
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".
Diffstat (limited to 'hosts')
-rw-r--r--hosts/erp12
1 files changed, 2 insertions, 0 deletions
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