chore: update scripts

This commit is contained in:
Tiara Rodney 2026-03-14 20:13:25 +01:00
parent cfb9b7c591
commit 62cb0f8afd
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
7 changed files with 24 additions and 22 deletions

View file

@ -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