Update mint.sh

This commit is contained in:
olli 2023-07-03 17:36:41 +02:00
parent b75a407ad3
commit 25869235cb

View File

@ -18,6 +18,12 @@ whoami | grep -q ^root$ || read x
# domainname # domainname
if ! egrep -q "\.${mydomain}$" /etc/hostname if ! egrep -q "\.${mydomain}$" /etc/hostname
then 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) host=$(cat /etc/hostname | cut -d. -f1)
#echo "${host}.${mydomain}" | sudo tee /etc/hostname #echo "${host}.${mydomain}" | sudo tee /etc/hostname
hostnamectl set-hostname ${host}.${mydomain} hostnamectl set-hostname ${host}.${mydomain}