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}