chore: update scripts
This commit is contained in:
parent
cfb9b7c591
commit
62cb0f8afd
7 changed files with 24 additions and 22 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Add /etc/hosts entries for VM service domains. Requires root.
|
||||
# Add /etc/hosts entries for VM service domains.
|
||||
set -eu
|
||||
|
||||
# Domains on vm-proxy (WG: 10.0.0.1)
|
||||
|
|
@ -21,12 +21,12 @@ accounts.tiararodney.com
|
|||
|
||||
for domain in $PROXY_DOMAINS; do
|
||||
grep -q "$domain" /etc/hosts 2>/dev/null && continue
|
||||
echo "10.0.0.1 $domain" >> /etc/hosts
|
||||
echo "10.0.0.1 $domain" | sudo tee -a /etc/hosts > /dev/null
|
||||
echo " added $domain -> 10.0.0.1"
|
||||
done
|
||||
|
||||
for domain in $IDP_DOMAINS; do
|
||||
grep -q "$domain" /etc/hosts 2>/dev/null && continue
|
||||
echo "10.0.0.2 $domain" >> /etc/hosts
|
||||
echo "10.0.0.2 $domain" | sudo tee -a /etc/hosts > /dev/null
|
||||
echo " added $domain -> 10.0.0.2"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue