Skip to content

Commit

Permalink
scigraph readme fix sudo or su code
Browse files Browse the repository at this point in the history
was leaking values to stdout and echo su -c would always run
  • Loading branch information
tgbugs committed Oct 9, 2020
1 parent ee4dabf commit 79696a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nifstd/scigraph/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ and copy the sections into [[file:${HOME}/.ssh/config][your ssh config file]].

If you are deploying to an aws server (e.g. aws-scigraph or aws-scigraph-data),
the =IdentityFile= entry must point to a key that has admin access via the aws console.
# NOTE it seems that Host * settings fail on windows ?!??!
#+begin_src ssh-config :noweb yes :tangle ~/.ssh/config.scigraph.example
# enable connection multiplexing for all hosts
Host *
Expand Down Expand Up @@ -1474,7 +1475,7 @@ local KEYNAME_DEFAULT=${HOSTNAME}.${USER}.${SERVER}.${SVC_USER}
local KEYNAME=${KEYNAME:-${KEYNAME_DEFAULT}}
local KEYTYPE=ed25519 # this is hardcoded for now
KEYPATH=~/.ssh/id_${KEYTYPE}.${KEYNAME}
SUDO_OR_SU='$(command -v sudo && echo sudo ${0} -c || echo For su on ${HOSTNAME} 1>& 2; echo su -c)'
SUDO_OR_SU='$(command -v sudo 1>& 2 && echo sudo ${0} -c || { echo For su on ${HOSTNAME} 1>& 2; echo su -c; })'
#+end_src

#+name: ssh-functions
Expand Down

0 comments on commit 79696a7

Please sign in to comment.