Fixed reset of dns config after reboot

This commit is contained in:
2020-10-28 11:51:50 +01:00
parent f4f29fa3dd
commit 41e4a4c10d
4 changed files with 7 additions and 6 deletions

View File

@@ -25,8 +25,8 @@ echo "snd_aloop" >> /etc/modules
modprobe snd_aloop > $OUTPUT 2>&1 modprobe snd_aloop > $OUTPUT 2>&1
##config dns ##config dns
mv /etc/resolv.conf /etc/resolv.conf.bck > $OUTPUT 2>&1 printf '%s\n' '#Internal dns server' "nameserver $intip" '#Other dns server(s)' > /etc/resolvconf/resolv.conf.d/head
echo "nameserver $intip" > /etc/resolv.conf sed -i -e '/hosts:/c\\hosts: files mdns4_minimal dns' /etc/nsswitch.conf
#config jibri #config jibri
systemctl stop jibri systemctl stop jibri

View File

@@ -1 +1 @@
jibri google-chrome-stable ffmpeg openjdk-11-jre-headless adoptopenjdk-8-hotspot ufw unzip jibri google-chrome-stable ffmpeg openjdk-11-jre-headless adoptopenjdk-8-hotspot ufw unzip resolvconf

View File

@@ -13,8 +13,9 @@ ufw allow 10000/udp > $OUTPUT 2>&1
echo "y" | ufw enable > $OUTPUT 2>&1 echo "y" | ufw enable > $OUTPUT 2>&1
##config dns ##config dns
mv /etc/resolv.conf /etc/resolv.conf.bck > $OUTPUT 2>&1 printf '%s\n' '#Internal dns server' "nameserver $intip" '#Other dns server(s)' > /etc/resolvconf/resolv.conf.d/head
echo "nameserver $intip" > /etc/resolv.conf sed -i -e '/hosts:/c\\hosts: files mdns4_minimal dns' /etc/nsswitch.conf
##config jitsi ##config jitsi
systemctl stop jitsi-videobridge2 > $OUTPUT 2>&1 systemctl stop jitsi-videobridge2 > $OUTPUT 2>&1

View File

@@ -1 +1 @@
jitsi-videobridge2 ufw jitsi-videobridge2 ufw resolvconf