Update mint.sh

This commit is contained in:
olli 2023-07-03 17:33:15 +02:00
parent f8f48cac43
commit b75a407ad3

View File

@ -19,7 +19,8 @@ whoami | grep -q ^root$ || read x
if ! egrep -q "\.${mydomain}$" /etc/hostname if ! egrep -q "\.${mydomain}$" /etc/hostname
then then
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}
fi fi
@ -59,6 +60,7 @@ for playbook in debian.ansible.basics \
debian.ansible.firewall \ debian.ansible.firewall \
debian.ansible.tornet.network \ debian.ansible.tornet.network \
debian.ansible.vnet.network \ debian.ansible.vnet.network \
debian.ansible.autoupdate \
debian.ansible.dedyn.client debian.ansible.dedyn.client
do do
sudo rm -rf ${playbook} sudo rm -rf ${playbook}
@ -67,6 +69,7 @@ do
sudo rm -rf ${playbook} sudo rm -rf ${playbook}
done done
. /usr/local/sbin/autoupdate.sh
# Add User to docker group # Add User to docker group
sudo usermod -aG docker $(whoami) sudo usermod -aG docker $(whoami)