Generate locale based on LANG before setting up Postgres.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 26 Apr 2018 03:29:34 +0000 (11:29 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 26 Apr 2018 03:30:24 +0000 (11:30 +0800)
templates/postgres.template.yml

index 63c1eaddedf7f1ae2b3466b265d8c6db354c2da5..a970dcc7f575fa1d8d4d47f9f443793d61b3553e 100644 (file)
@@ -19,6 +19,7 @@ hooks:
        to: sv start postgres || exit 1
 
 run:
+  - exec: locale-gen $LANG && update-locale
   - exec: mkdir -p /shared/postgres_run
   - exec: chown postgres:postgres /shared/postgres_run
   - exec: chmod 775 /shared/postgres_run