From 3edf1e437953d22bde46460fd6b18e11cfceb8ac Mon Sep 17 00:00:00 2001 From: finn Date: Mon, 21 Sep 2026 17:38:52 -0700 Subject: [PATCH] update dns on spawn --- create-linode.sh | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/create-linode.sh b/create-linode.sh index 32e982f..ee4c392 100755 --- a/create-linode.sh +++ b/create-linode.sh @@ -15,6 +15,11 @@ SCRIPT_ACTION=$1 LINODE_LABEL=$2 LOGFILE="./linodes.log" +# Set to "true" by any action that should also refresh the valheim A record. +# The create action sets this so it reuses the DNS update block below instead +# of duplicating the record-updating logic. +UPDATE_A_RECORD="false" + # Pre-existing Valheim volume, attached to every Linode at creation time. # The filesystem (mkfs.ext4) was already created; see voldirections.txt. VOLUME_ID="18073448" @@ -40,12 +45,13 @@ if [[ "$SCRIPT_ACTION" == "" || "$SCRIPT_ACTION" == "--help" || "$SCRIPT_ACTION" echo "Linode helper script: create-linode.sh