Skip to content

Commit 7c86871

Browse files
committed
fix: typo in pre/post hooks test file
1 parent b3f4e40 commit 7c86871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/tests/acme_hooks/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
default_pre_hook_file="/tmp/default_prehook"
66
default_pre_hook_command="touch $default_pre_hook_file"
77
default_post_hook_file="/tmp/default_posthook"
8-
default_post_hook_ommand="touch $default_post_hook_file"
8+
default_post_hook_command="touch $default_post_hook_file"
99

1010
percontainer_pre_hook_file="/tmp/percontainer_prehook"
1111
percontainer_pre_hook_command="touch $percontainer_pre_hook_file"
@@ -19,7 +19,7 @@ else
1919
fi
2020
run_le_container "${1:?}" "$le_container_name" \
2121
--cli-args "--env ACME_PRE_HOOK=$default_pre_hook_command" \
22-
--cli-args "--env ACME_POST_HOOK=$default_post_hook_ommand"
22+
--cli-args "--env ACME_POST_HOOK=$default_post_hook_command"
2323

2424
# Create the $domains array from comma separated domains in TEST_DOMAINS.
2525
IFS=',' read -r -a domains <<< "$TEST_DOMAINS"
@@ -65,7 +65,7 @@ elif docker exec "$le_container_name" [[ ! -f "/etc/acme.sh/$container_email/${d
6565
fi
6666

6767
default_pre_hook_command_base64="${acme_pre_hook_key}${acme_base64_start}$(echo -n "$default_pre_hook_command" | base64)${acme_base64_end}"
68-
default_post_hook_command_base64="${acme_post_hook_key}${acme_base64_start}$(echo -n "$default_post_hook_ommand" | base64)${acme_base64_end}"
68+
default_post_hook_command_base64="${acme_post_hook_key}${acme_base64_start}$(echo -n "$default_post_hook_command" | base64)${acme_base64_end}"
6969

7070
default_acme_pre_hook="$(docker exec "$le_container_name" grep "$acme_pre_hook_key" "/etc/acme.sh/$container_email/${domains[0]}/${domains[0]}.conf")"
7171
default_acme_post_hook="$(docker exec "$le_container_name" grep "$acme_post_hook_key" "/etc/acme.sh/$container_email/${domains[0]}/${domains[0]}.conf")"

0 commit comments

Comments
 (0)