add hostname check
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Max Erenberg 2021-08-20 18:46:36 +00:00
parent c39eff6ca7
commit 89e6c541ab
2 changed files with 6 additions and 0 deletions

View File

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

View File

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