From 7a3e3df07af1ca878956eced2f4cbc9460751bf8 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Wed, 16 Dec 2020 16:53:19 +0000 Subject: [PATCH] change URL to ritherdon.abbether.net The URL used here is a domain name and not just an IP address. This should reduce the need to update the IP address in the code if the server, currently hosted on AWS at time of writing, needs to be restarted. The servers on AWS do not keep the same IP address if you stop and start them. The abbether.net domain is a personal one and used as a way to reduce project costs. I did not use this domain when I first wrote the code here because I did not own it. Long story short, the Covid-19 malarkey meant the project was put on hold and I ended up owning abbether.net during the first lock-down. The decision to use the domain is one of convince my end. I did not want to keep updating the code manually if the server on AWS was stopping and starting. --- shutdown.sh | 2 +- startup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shutdown.sh b/shutdown.sh index 08190c4..ff0ca61 100755 --- a/shutdown.sh +++ b/shutdown.sh @@ -15,7 +15,7 @@ logDate=$(date '+%Y-%m-%dT%TZ') logFile="/home/rtrp/logs/shutdown-logs.txt" -mainURL="http://3.9.19.84/api/status/update" # Make sure this is valid. +mainURL="http://ritherdon.abbether.net/api/status/update" # Make sure this is valid. getApiUrl () { case $HOSTNAME in diff --git a/startup.sh b/startup.sh index e3720cb..0d5d912 100755 --- a/startup.sh +++ b/startup.sh @@ -24,7 +24,7 @@ sleep 60 logDate=$(date '+%Y-%m-%dT%TZ') logFile="/home/rtrp/logs/startup-logs.txt" -mainURL="http://3.9.19.84/api/status/update" # Make sure this is valid. +mainURL="http://ritherdon.abbether.net/api/status/update" # Make sure this is valid. getApiUrl () { case $HOSTNAME in