Update mint.sh
This commit is contained in:
parent
b75a407ad3
commit
25869235cb
6
mint.sh
6
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}
|
||||
|
Loading…
Reference in New Issue
Block a user