mint.sh aktualisiert
This commit is contained in:
parent
0bb84a7aa0
commit
7a2662cf1a
33
mint.sh
33
mint.sh
@ -15,6 +15,19 @@ Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript
|
||||
|
||||
whoami | grep -q ^root$ || read x
|
||||
|
||||
# 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
|
||||
fi
|
||||
fi
|
||||
|
||||
# identify default user
|
||||
defaultuser=$(getent passwd 1000 | cut -d: -f1)
|
||||
defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
|
||||
@ -103,25 +116,7 @@ do
|
||||
sudo rm -rf ${playbook}
|
||||
done
|
||||
|
||||
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
|
||||
sudo bash -x /usr/local/sbin/autoupdate.sh
|
||||
|
||||
# Add User to docker group
|
||||
sudo usermod -aG docker ${defaultuser}
|
||||
|
Loading…
Reference in New Issue
Block a user