Browse Source

this is a better way to find the path... On boot, the script is sourced,

not executed, so the old method won't work.  This isn't great if there are
two scripts if/when it gets installed to base, but prefering the package
one seems to make sense over the built in one if it exists..
remotes/client/ssh-main
John-Mark Gurney 4 years ago
parent
commit
5310940f97
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ggatessh/rc.d/ggatessh

+ 2
- 1
ggatessh/rc.d/ggatessh View File

@@ -22,7 +22,8 @@ tests_cmd="ggatessh_tests"
extra_commands="destroy rescue status tests"
required_modules="geom_gate:g_gate"

command="${0%/etc/rc.d/ggatessh}/sbin/ggatessh"
scriptname="$(find /usr/local/etc/rc.d /etc/rc.d -name ggatessh | head -n 1)"
command="${scriptname%/etc/rc.d/ggatessh}/sbin/ggatessh"

# ggatessh_devs="0 2 3"
# ggatessh_0_path="remuser@host.example.com:somepath"


Loading…
Cancel
Save