fix create file

This commit is contained in:
Vassiliy Yegorov
2020-01-27 13:05:39 +07:00
parent 5e2264134e
commit de7f668122

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
source .env 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 "--password=${FREEIPA_PASS}" > ${SERVICE_DATA}/ipa-server-install-options
echo "--admin-password=${FREEIPA_PASS}" >> ${SERVICE_DATA}/ipa-server-install-options echo "--admin-password=${FREEIPA_PASS}" >> ${SERVICE_DATA}/ipa-server-install-options
} }