1
0
mirror of https://github.com/containrrr/watchtower.git synced 2024-12-12 09:04:17 +02:00

Adjust flags

This commit is contained in:
Maximilian Brandau 2020-03-23 13:53:30 +01:00
parent 2b21bd46be
commit 59ce378a35
No known key found for this signature in database
GPG Key ID: 6CBA8C2AC22BA157
3 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ docker run -d \
To send notifications via shoutrrr, the following command-line options, or their corresponding environment variables, can be set:
- `--notification-shoutrrr-url` (env. `WATCHTOWER_NOTIFICATION_SHOUTRRR_URL`): The shoutrrr service URL to be used.
- `--notification-url` (env. `WATCHTOWER_NOTIFICATION_URL`): The shoutrrr service URL to be used.
Go to [https://github.com/containrrr/shoutrrr#service-urls](https://github.com/containrrr/shoutrrr#service-urls) to learn more about the different service URLs you can use.
@ -132,7 +132,7 @@ docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
-e WATCHTOWER_NOTIFICATIONS=shoutrrr \
-e WATCHTOWER_NOTIFICATION_SHOUTRRR_URL=discord://channel/token \
-e WATCHTOWER_NOTIFICATION_SHOUTRRR_URL=slack://watchtower@token-a/token-b/token-c \
-e WATCHTOWER_NOTIFICATION_URL=discord://channel/token \
-e WATCHTOWER_NOTIFICATION_URL=slack://watchtower@token-a/token-b/token-c \
containrrr/watchtower
```

View File

@ -240,9 +240,9 @@ Should only be used for testing.
"The Gotify Application required to query the Gotify API")
flags.StringArrayP(
"notification-shoutrrr-url",
"notification-url",
"",
viper.GetStringSlice("WATCHTOWER_NOTIFICATION_SHOUTRRR_URL"),
viper.GetStringSlice("WATCHTOWER_NOTIFICATION_URL"),
"The shoutrrr URL to send notifications to")
}

View File

@ -22,7 +22,7 @@ type shoutrrrTypeNotifier struct {
func newShoutrrrNotifier(c *cobra.Command, acceptedLogLevels []log.Level) t.Notifier {
flags := c.PersistentFlags()
urls, _ := flags.GetStringArray("notification-shoutrrr-url")
urls, _ := flags.GetStringArray("notification-url")
n := &shoutrrrTypeNotifier{
Urls: urls,