add hostname check
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c39eff6ca7
commit
89e6c541ab
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue