1
0

fix: typo in pre/post hooks test file

This commit is contained in:
Nicolas Duchon 2022-03-02 19:55:22 +01:00
parent b3f4e40c05
commit 7c86871bd0
No known key found for this signature in database
GPG Key ID: EA3151C66A4D79E7

@ -5,7 +5,7 @@
default_pre_hook_file="/tmp/default_prehook" default_pre_hook_file="/tmp/default_prehook"
default_pre_hook_command="touch $default_pre_hook_file" default_pre_hook_command="touch $default_pre_hook_file"
default_post_hook_file="/tmp/default_posthook" default_post_hook_file="/tmp/default_posthook"
default_post_hook_ommand="touch $default_post_hook_file" default_post_hook_command="touch $default_post_hook_file"
percontainer_pre_hook_file="/tmp/percontainer_prehook" percontainer_pre_hook_file="/tmp/percontainer_prehook"
percontainer_pre_hook_command="touch $percontainer_pre_hook_file" percontainer_pre_hook_command="touch $percontainer_pre_hook_file"
@ -19,7 +19,7 @@ else
fi fi
run_le_container "${1:?}" "$le_container_name" \ run_le_container "${1:?}" "$le_container_name" \
--cli-args "--env ACME_PRE_HOOK=$default_pre_hook_command" \ --cli-args "--env ACME_PRE_HOOK=$default_pre_hook_command" \
--cli-args "--env ACME_POST_HOOK=$default_post_hook_ommand" --cli-args "--env ACME_POST_HOOK=$default_post_hook_command"
# Create the $domains array from comma separated domains in TEST_DOMAINS. # Create the $domains array from comma separated domains in TEST_DOMAINS.
IFS=',' read -r -a domains <<< "$TEST_DOMAINS" IFS=',' read -r -a domains <<< "$TEST_DOMAINS"
@ -65,7 +65,7 @@ elif docker exec "$le_container_name" [[ ! -f "/etc/acme.sh/$container_email/${d
fi fi
default_pre_hook_command_base64="${acme_pre_hook_key}${acme_base64_start}$(echo -n "$default_pre_hook_command" | base64)${acme_base64_end}" default_pre_hook_command_base64="${acme_pre_hook_key}${acme_base64_start}$(echo -n "$default_pre_hook_command" | base64)${acme_base64_end}"
default_post_hook_command_base64="${acme_post_hook_key}${acme_base64_start}$(echo -n "$default_post_hook_ommand" | base64)${acme_base64_end}" default_post_hook_command_base64="${acme_post_hook_key}${acme_base64_start}$(echo -n "$default_post_hook_command" | base64)${acme_base64_end}"
default_acme_pre_hook="$(docker exec "$le_container_name" grep "$acme_pre_hook_key" "/etc/acme.sh/$container_email/${domains[0]}/${domains[0]}.conf")" default_acme_pre_hook="$(docker exec "$le_container_name" grep "$acme_pre_hook_key" "/etc/acme.sh/$container_email/${domains[0]}/${domains[0]}.conf")"
default_acme_post_hook="$(docker exec "$le_container_name" grep "$acme_post_hook_key" "/etc/acme.sh/$container_email/${domains[0]}/${domains[0]}.conf")" default_acme_post_hook="$(docker exec "$le_container_name" grep "$acme_post_hook_key" "/etc/acme.sh/$container_email/${domains[0]}/${domains[0]}.conf")"