mirror of https://github.com/akaunting/docker.git
Check for DB_HOST_WRITE in Akaunting V setup
This commit is contained in:
parent
475ca0b15f
commit
28c9244ef6
|
@ -36,9 +36,17 @@ mkdir -p storage/app/uploads
|
||||||
if [ "$do_setup" -o "$AKAUNTING_SETUP" == "true" ]; then
|
if [ "$do_setup" -o "$AKAUNTING_SETUP" == "true" ]; then
|
||||||
retry_for=30
|
retry_for=30
|
||||||
retry_interval=5
|
retry_interval=5
|
||||||
|
|
||||||
|
if [[ -z "${DB_HOST_WRITE}" ]]; then
|
||||||
|
db_host="${DB_HOST}"
|
||||||
|
else
|
||||||
|
db_host="${DB_HOST_WRITE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
while sleep $retry_interval; do
|
while sleep $retry_interval; do
|
||||||
if php artisan install \
|
if php artisan install \
|
||||||
--db-host=$DB_HOST \
|
--db-host=$db_host \
|
||||||
--db-port=$DB_PORT \
|
--db-port=$DB_PORT \
|
||||||
--db-name=$DB_NAME \
|
--db-name=$DB_NAME \
|
||||||
--db-username=$DB_USERNAME \
|
--db-username=$DB_USERNAME \
|
||||||
|
|
Loading…
Reference in New Issue