Skip to content

Commit

Permalink
Comment out and uncomment the 'IPv6' and 'IPV6' option in docker-comp…
Browse files Browse the repository at this point in the history
…ose file
  • Loading branch information
evertramos committed Apr 21, 2021
1 parent 06eccec commit dd13a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/localscript/update-docker-compose-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ local_update_docker_compose_file()
run_function docker_compose_replace_string $LOCAL_FULL_PATH "$REPLACE_LETSENCRYPT_SERVICE_NAME" "$LETSENCRYPT_SERVICE_NAME"

# Uncomment in case of IPv6 activation or uncomment
[[ "$ACTIVATE_IPV6" == true ]] && run_function file_uncomment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPv6"
[[ ! "$ACTIVATE_IPV6" == true ]] && run_function file_comment_line_with_string ${LOCAL_FULL_PATH%/}"/docker-compose.yml" "IPv6"
[[ "$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"
[[ ! "$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"
# We are aware that it will set two '#' if the IPv6 is already commented

return 0
Expand Down

0 comments on commit dd13a2c

Please sign in to comment.