Skip to content

Commit

Permalink
Update notifications.md (#1565)
Browse files Browse the repository at this point in the history
- Added \ at EOL
- Added `\` to escape `"` near `\n`
  • Loading branch information
DMJoh authored Feb 15, 2023
1 parent ee8f293 commit 6ace7bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Example using a custom report template that always sends a session report after
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
-e WATCHTOWER_NOTIFICATION_REPORT="true"
-e WATCHTOWER_NOTIFICATION_REPORT="true" \
-e WATCHTOWER_NOTIFICATION_URL="discord://token@channel slack://watchtower@token-a/token-b/token-c" \
-e WATCHTOWER_NOTIFICATION_TEMPLATE="
{{- if .Report -}}
Expand All @@ -130,7 +130,7 @@ Example using a custom report template that always sends a session report after
{{- end -}}
{{- end -}}
{{- else -}}
{{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
{{range .Entries -}}{{.Message}}{{\"\n\"}}{{- end -}}
{{- end -}}
" \
containrrr/watchtower
Expand Down

0 comments on commit 6ace7bd

Please sign in to comment.