openbsd-ports/x11/nagstamon/patches/patch-Nagstamon_Config_py
2019-12-28 10:35:48 +00:00

29 lines
2.2 KiB
Plaintext

$OpenBSD: patch-Nagstamon_Config_py,v 1.9 2019/12/28 10:35:48 ajacoutot Exp $
Index: Nagstamon/Config.py
--- Nagstamon/Config.py.orig
+++ Nagstamon/Config.py
@@ -778,17 +778,17 @@ class Config(object):
else:
# the Linux settings
defaultactions = {"RDP": Action(name="RDP", description="Connect via RDP.",
- type="command", string="/usr/bin/rdesktop -g 1024x768 $ADDRESS$"),
+ type="command", string="${LOCALBASE}/bin/rdesktop -g 1024x768 $ADDRESS$"),
"VNC": Action(name="VNC", description="Connect via VNC.",
- type="command", string="/usr/bin/vncviewer $ADDRESS$"),
+ type="command", string="${LOCALBASE}/bin/vncviewer $ADDRESS$"),
"SSH": Action(name="SSH", description="Connect via SSH.",
- type="command", string="/usr/bin/gnome-terminal -x ssh root@$ADDRESS$"),
+ type="command", string="${LOCALBASE}/bin/gnome-terminal -x ssh root@$ADDRESS$"),
"Telnet": Action(name="Telnet", description="Connect via Telnet.",
type="command",
- string="/usr/bin/gnome-terminal -x telnet root@$ADDRESS$"),
+ string="${LOCALBASE}/bin/gnome-terminal -x telnet root@$ADDRESS$"),
"Update-Linux": Action(name="Update-Linux", description="Run remote update script.",
type="command",
- string="/usr/bin/terminator -x ssh root@$HOST$ update.sh",
+ string="${LOCALBASE}/bin/terminator -x ssh root@$HOST$ update.sh",
enabled=False)}
# OS agnostic actions as examples
defaultactions["Nagios-1-Click-Acknowledge-Host"] = Action(name="Nagios-1-Click-Acknowledge-Host", type="url",