mint.sh aktualisiert

This commit is contained in:
olli 2023-07-28 16:48:29 +02:00
parent 043cbabbe9
commit e27ef7c2c4

34
mint.sh
View File

@ -15,22 +15,6 @@ Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript
whoami | grep -q ^root$ || read x whoami | grep -q ^root$ || read x
# Check for using DoHoT
if [ -s /etc/dontusedohot ]
then
if [ -e /etc/systemd/resolved.conf.d/DoHoT.conf ]
then
sudo rm -f /etc/systemd/resolved.conf.d/DoHoT.conf
sudo systemctl restart systemd-resolved.service
fi
else
echo "[Resolve]
DNS=127.0.2.1
Domains=~." | sudo tee /etc/systemd/resolved.conf.d/DoHoT.conf
sudo systemctl restart systemd-resolved.service
fi
# identify default user # identify default user
defaultuser=$(getent passwd 1000 | cut -d: -f1) defaultuser=$(getent passwd 1000 | cut -d: -f1)
defaultuserhome=$(getent passwd 1000 | cut -d: -f6) defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
@ -121,6 +105,24 @@ done
sudo bash /usr/local/sbin/autoupdate.sh sudo bash /usr/local/sbin/autoupdate.sh
# Check for using DoHoT
if [ -e /etc/dnscrypt-proxy/blocked-names.txt ]
then
if [ -s /etc/dontusedohot ]
then
if [ -e /etc/systemd/resolved.conf.d/DoHoT.conf ]
then
sudo rm -f /etc/systemd/resolved.conf.d/DoHoT.conf
sudo systemctl restart systemd-resolved.service
fi
else
echo "[Resolve]
DNS=127.0.2.1
Domains=~." | sudo tee /etc/systemd/resolved.conf.d/DoHoT.conf
sudo systemctl restart systemd-resolved.service
fi
fi
# Add User to docker group # Add User to docker group
sudo usermod -aG docker ${defaultuser} sudo usermod -aG docker ${defaultuser}