mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-19 14:47:12 -04:00
24 lines
560 B
Bash
Executable File
24 lines
560 B
Bash
Executable File
#!/bin/bash
|
|
|
|
update_ssmtp.sh
|
|
|
|
|
|
if [[ ! -f ledgersmb.conf ]]; then
|
|
cp ledgersmb.conf.default ledgersmb.conf
|
|
sed -i \
|
|
-e "s/\(cache_templates = \).*\$/cache_templates = 1/g" \
|
|
-e "s/\(host = \).*\$/\1$POSTGRES_HOST/g" \
|
|
-e "s%\(sendmail = \).*%\1/usr/bin/ssmtp%g" \
|
|
/srv/ledgersmb/ledgersmb.conf
|
|
fi
|
|
|
|
if [ ! -z ${CREATE_DATABASE+x} ]; then
|
|
perl tools/prepare-company-database.pl --company $CREATE_DATABASE \
|
|
--host $POSTGRES_HOST \
|
|
--owner postgres \
|
|
--password "$POSTGRES_PASS"
|
|
fi
|
|
|
|
# start ledgersmb
|
|
exec starman tools/starman.psgi
|