mint.sh aktualisiert
This commit is contained in:
parent
f39abc2a96
commit
574ede4b79
6
mint.sh
6
mint.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
mydomain="mint.ds9.dedyn.io"
|
||||
mydomain="ds9.dedyn.io"
|
||||
|
||||
echo "!!! ACHTUNG !!!
|
||||
|
||||
@ -16,7 +16,7 @@ Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript
|
||||
whoami | grep -q ^root$ || read x
|
||||
|
||||
# domainname
|
||||
if ! egrep -q "\.${mydomain}$" /etc/hostname
|
||||
if ! egrep -q "\.mint.${mydomain}$" /etc/hostname
|
||||
then
|
||||
# remove old whoogle path if available
|
||||
if [ -d /home/docker/whoogle.$(hostname) ]
|
||||
@ -26,7 +26,7 @@ then
|
||||
fi
|
||||
host=$(cat /etc/hostname | cut -d. -f1)
|
||||
#echo "${host}.${mydomain}" | sudo tee /etc/hostname
|
||||
hostnamectl set-hostname ${host}.${mydomain}
|
||||
hostnamectl set-hostname ${host}.mint.${mydomain}
|
||||
fi
|
||||
|
||||
# fix for creating notify.sh dir from docker start if file not present
|
||||
|
Loading…
Reference in New Issue
Block a user