init
This commit is contained in:
commit
883f31932e
169 changed files with 5676 additions and 0 deletions
21
scripts/local/teardown-hosts.sh
Normal file
21
scripts/local/teardown-hosts.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
# Remove VM service domain entries from /etc/hosts. Requires root.
|
||||
set -eu
|
||||
|
||||
DOMAINS="
|
||||
tiararodney.com
|
||||
chat.tiararodney.com
|
||||
comments.tiararodney.com
|
||||
bugs.code.tiararodney.com
|
||||
dockerhub.oci.code.tiararodney.com
|
||||
ghcr.oci.code.tiararodney.com
|
||||
crates.code.tiararodney.com
|
||||
pypi.code.tiararodney.com
|
||||
accounts.tiararodney.com
|
||||
"
|
||||
|
||||
for domain in $DOMAINS; do
|
||||
sed -i "/[[:space:]]${domain}$/d" /etc/hosts
|
||||
done
|
||||
|
||||
echo "==> /etc/hosts entries removed"
|
||||
Loading…
Add table
Add a link
Reference in a new issue