From 5e2264134e3e2c871146a3b112a7260a91147650 Mon Sep 17 00:00:00 2001 From: Vassiliy Yegorov Date: Mon, 27 Jan 2020 13:03:07 +0700 Subject: [PATCH] add opts in first init --- docker-compose.yml | 2 +- first_run.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d5f195e..8f018fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,7 +54,7 @@ services: - VIRTUAL_PROTO=https - VIRTUAL_PORT=443 - VIRTUAL_HOST=${FREEIPA_HOST} - - PASSWORD={FREEIPA_PASS} + # - PASSWORD=${FREEIPA_PASS} # - HTTPS_METHOD=noredirect # - USE_LETSENCRYPT_CERTS=${USE_LETSENCRYPT_CERTS} # - LETSENCRYPT_HOST=${FREEIPA_HOST} diff --git a/first_run.sh b/first_run.sh index cc505c1..0ac4a9d 100755 --- a/first_run.sh +++ b/first_run.sh @@ -1,9 +1,10 @@ #!/bin/bash source .env -# [ -f ${SERVICE_DATA}/ipa-server-install-options ] && { -# echo ${SERVICE_DATA}/ipa-server-install-options -# } +[ -f ${SERVICE_DATA}/ipa-server-install-options ] && { + echo "--password=${FREEIPA_PASS}" > ${SERVICE_DATA}/ipa-server-install-options + echo "--admin-password=${FREEIPA_PASS}" >> ${SERVICE_DATA}/ipa-server-install-options +} docker-compose run --rm --service-ports freeipa exit-on-finished