forked from ISTI-ansible-roles/ansible-roles
Give the option to specify an env file from the command line.
This commit is contained in:
parent
787cf219d6
commit
02c75a7bde
|
@ -1,12 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $# -ne 1 ] ; then
|
||||
ACME_SH_ENV_FILE="$1"
|
||||
fi
|
||||
|
||||
if [ -f "/etc/default/acme_sh_request_env" ] ; then
|
||||
. "/etc/default/acme_sh_request_env"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f "$ACME_SH_ENV_FILE" ] ; then
|
||||
if [ -n "$ACME_SH_ENV_FILE" ] && [ -f "$ACME_SH_ENV_FILE" ] ; then
|
||||
. "$ACME_SH_ENV_FILE"
|
||||
else
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue