docker-timetrex/docker-timetrex-entrypoint

11 lines
269 B
Plaintext
Raw Normal View History

2022-06-12 05:30:09 +00:00
#!/bin/bash
function timetrex_set() {
sed -i '/^'"$1"' /s/=.*$/= '"$2"'/' /var/www/html/timetrex.ini.php
}
timetrex_set 'base_url' "${BASE_URL:=\/\/interface}"
timetrex_set 'password' "$POSTGRES_PASSWORD"
timetrex_set 'host' "$POSTGRES_HOST"
apache2-foreground