1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-01 23:57:05 +00:00

moved variable greylistDisabled to another file

Re-Added installation of systemd-resolved, but moved after bind9 installation
This commit is contained in:
AiutoPcAmico 2023-12-29 16:01:50 +01:00
parent 6e3ffd5b22
commit 8b4f8140f9
4 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,6 @@ set -euo pipefail
# START AiutoPcAmico modification
PHP_VER=8.2
greylistDisabled=false
# END AiutoPcAmico modification
function hide_output {

View File

@ -0,0 +1,2 @@
# START AiutoPcAmico modification
greylistDisabled=false

View File

@ -3,6 +3,7 @@
#####################################################
source setup/functions.sh # load our functions
source setup/global-variables.sh # load AiutoPcAmico variables for settings
# START AiutoPcAmico modification

View File

@ -301,8 +301,7 @@ fi #NODOC
# If more queries than specified are sent, bind9 returns SERVFAIL. After flushing the cache during system checks,
# we ran into the limit thus we are increasing it from 75 (default value) to 100.
apt_install bind9
# touch /etc/default/bind9
# touch /etc/default/named
tools/editconf.py /etc/default/named \
"OPTIONS=\"-u bind -4\""
@ -321,9 +320,13 @@ fi
# which is where bind9 will be running. Obviously don't do this before
# installing bind9 or else apt won't be able to resolve a server to
# download bind9 from.
# START AiutoPcAmico modification
apt_install systemd-resolved
rm -f /etc/resolv.conf
tools/editconf.py /etc/systemd/resolved.conf DNSStubListener=no
echo "nameserver 127.0.0.1" > /etc/resolv.conf
# END AiutoPcAmico modification
# Restart the DNS services.