add hostname check

pull/7/head
Max Erenberg 2 years ago
parent c39eff6ca7
commit 89e6c541ab
  1. 3
      .drone/auth1-setup.sh
  2. 3
      .drone/phosphoric-acid-setup.sh

@ -2,6 +2,9 @@
set -ex
# sanity check
test $(hostname) = auth1
# don't resolve container names to *real* CSC machines
sed -E '/^(domain|search)[[:space:]]+csclub.uwaterloo.ca/d' /etc/resolv.conf > /tmp/resolv.conf
cat /tmp/resolv.conf > /etc/resolv.conf

@ -2,6 +2,9 @@
set -ex
# sanity check
test $(hostname) = phosphoric-acid
# don't resolve container names to *real* CSC machines
sed -E '/^(domain|search)[[:space:]]+csclub.uwaterloo.ca/d' /etc/resolv.conf > /tmp/resolv.conf
cat /tmp/resolv.conf > /etc/resolv.conf

Loading…
Cancel
Save