Skip to content

Commit

Permalink
make some scripts env vars env var configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasf committed Aug 7, 2021
1 parent 165474d commit 983d974
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions logs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

CONTROLLER=192.168.0.1
USER=root
SSHC="${USER}@${CONTROLLER}"
NATBWMON_HOST="${NATBWMON_HOST:-192.168.0.1}"
NATBWMON_USER="${NATBWMON_USER:-root}"
SSHC="${NATBWMON_USER}@${NATBWMON_HOST}"

set -e
exec ssh ${SSHC} tail -n 100 -f /tmp/natbwmon.log | jq
6 changes: 3 additions & 3 deletions run
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

CONTROLLER=192.168.0.1
USER=root
SSHC="${USER}@${CONTROLLER}"
NATBWMON_HOST="${NATBWMON_HOST:-192.168.0.1}"
NATBWMON_USER="${NATBWMON_USER:-root}"
SSHC="${NATBWMON_USER}@${NATBWMON_HOST}"

ssh ${SSHC} killall -q natbwmon-arm64

Expand Down

0 comments on commit 983d974

Please sign in to comment.