bundles/forgejo: fix version string in update check

This commit is contained in:
Franzi 2023-08-23 13:47:38 +02:00
parent 8482f6a270
commit daae710624
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -26,7 +26,7 @@ defaults = {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit forgejo', 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit forgejo',
}, },
'FORGEJO UPDATE': { 'FORGEJO UPDATE': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_forgejo_for_new_release codeberg.org forgejo/forgejo v$(forgejo --version | cut -d" " -f3)', 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_forgejo_for_new_release codeberg.org forgejo/forgejo v$(forgejo --version | cut -d" " -f3 | sed "s/\\+/\\-/g")',
'vars.notification.mail': True, 'vars.notification.mail': True,
'check_interval': '60m', 'check_interval': '60m',
}, },