mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-18 10:10:35 -04:00
Add support for #4 - Make Postgres port configurable at run time
This commit is contained in:
2
start.sh
2
start.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user