Skip to content

Commit dd13a2c

Browse files
committed
Comment out and uncomment the 'IPv6' and 'IPV6' option in docker-compose file
1 parent 06eccec commit dd13a2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/localscript/update-docker-compose-file.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ local_update_docker_compose_file()
3939
run_function docker_compose_replace_string $LOCAL_FULL_PATH "$REPLACE_LETSENCRYPT_SERVICE_NAME" "$LETSENCRYPT_SERVICE_NAME"
4040

4141
# Uncomment in case of IPv6 activation or uncomment
42-
[[ "$ACTIVATE_IPV6" == true ]] && run_function file_uncomment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPv6"
43-
[[ ! "$ACTIVATE_IPV6" == true ]] && run_function file_comment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPv6"
42+
[[ "$ACTIVATE_IPV6" == true ]] && run_function file_uncomment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPv6" && run_function file_uncomment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPV6"
43+
[[ ! "$ACTIVATE_IPV6" == true ]] && run_function file_comment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPv6" && run_function file_comment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPV6"
4444
# We are aware that it will set two '#' if the IPv6 is already commented
4545

4646
return 0

0 commit comments

Comments
 (0)