Add support for #4 - Make Postgres port configurable at run time

This commit is contained in:
John Locke
2016-08-20 08:53:37 -07:00
parent 9839ceaa2b
commit 3839f3b105
3 changed files with 12 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ if [[ ! -f ledgersmb.conf ]]; then
sed -i \
-e "s/\(cache_templates = \).*\$/cache_templates = 1/g" \
-e "s/\(host = \).*\$/\1$POSTGRES_HOST/g" \
-e "s/\(port = \).*\$/\1$POSTGRES_PORT/g" \
-e "s/\(default_db = \).*\$/\1$DEFAULT_DB/g" \
-e "s%\(sendmail = \).*%\1/usr/bin/ssmtp%g" \
/srv/ledgersmb/ledgersmb.conf
fi