From 6155658029985166e5c6c1a9d63d0a61abd7e593 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 19 Jun 2023 14:31:09 +0000 Subject: [PATCH] Fixed gluerecords script --- bin/gluerecords | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/gluerecords b/bin/gluerecords index e895f2a..e2f0bf3 100755 --- a/bin/gluerecords +++ b/bin/gluerecords @@ -33,7 +33,13 @@ check_gluerecords() { echo -ne "* Glue records are correct!\n\n" } -DOMAIN_NEW="federated.sh" +usage() { + echo "$0: " + exit 2 +} + +[ $# != 1 ] && usage +DOMAIN_NEW=$1 EXTERNALIP=`dig @resolver4.opendns.com myip.opendns.com +short 2> /dev/null` [ $? -ne 0 ] && failcheck "Couldn't run dig, dns is not working" check_gluerecords