From de7f66812201c9ea4f8e10fccf537c997524b3f0 Mon Sep 17 00:00:00 2001 From: Vassiliy Yegorov Date: Mon, 27 Jan 2020 13:05:39 +0700 Subject: [PATCH] fix create file --- first_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first_run.sh b/first_run.sh index 0ac4a9d..50b8495 100755 --- a/first_run.sh +++ b/first_run.sh @@ -1,7 +1,7 @@ #!/bin/bash source .env -[ -f ${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 }