From 25869235cbfd19c60187fb70ea053b1b878a3655 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 3 Jul 2023 17:36:41 +0200 Subject: [PATCH] Update mint.sh --- mint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mint.sh b/mint.sh index 2c6c50a..caeb309 100644 --- a/mint.sh +++ b/mint.sh @@ -18,6 +18,12 @@ whoami | grep -q ^root$ || read x # domainname if ! egrep -q "\.${mydomain}$" /etc/hostname then + # remove old whoogle path if available + if [ -d /home/docker/whoogle.$(hostname) ] + then + docker-compose -f /home/docker/whoogle.$(hostname)/docker-compose.yml down + rm -r /home/docker/whoogle.$(hostname) + fi host=$(cat /etc/hostname | cut -d. -f1) #echo "${host}.${mydomain}" | sudo tee /etc/hostname hostnamectl set-hostname ${host}.${mydomain}