mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
simpler directory creation
This commit is contained in:
parent
99be51bf70
commit
90f0a0ae1d
@ -251,17 +251,13 @@ EOF
|
|||||||
|
|
||||||
# Adjust apt update and upgrade timers such that they're always before daily status
|
# Adjust apt update and upgrade timers such that they're always before daily status
|
||||||
# checks and thus never report upgrades unless user intervention is necessary.
|
# checks and thus never report upgrades unless user intervention is necessary.
|
||||||
if [ ! -d /etc/systemd/system/apt-daily.timer.d ]; then
|
mkdir -p /etc/systemd/system/apt-daily.timer.d
|
||||||
mkdir /etc/systemd/system/apt-daily.timer.d
|
|
||||||
fi
|
|
||||||
cat > /etc/systemd/system/apt-daily.timer.d/override.conf <<EOF;
|
cat > /etc/systemd/system/apt-daily.timer.d/override.conf <<EOF;
|
||||||
[Timer]
|
[Timer]
|
||||||
RandomizedDelaySec=5h
|
RandomizedDelaySec=5h
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ ! -d /etc/systemd/system/apt-daily-upgrade.timer.d ]; then
|
mkdir -p /etc/systemd/system/apt-daily-upgrade.timer.d
|
||||||
mkdir /etc/systemd/system/apt-daily-upgrade.timer.d
|
|
||||||
fi
|
|
||||||
cat > /etc/systemd/system/apt-daily-upgrade.timer.d/override.conf <<EOF;
|
cat > /etc/systemd/system/apt-daily-upgrade.timer.d/override.conf <<EOF;
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=
|
OnCalendar=
|
||||||
@ -342,9 +338,7 @@ apt_install unbound python3-unbound bind9-dnsutils
|
|||||||
# Configure unbound
|
# Configure unbound
|
||||||
cp -f conf/unbound.conf /etc/unbound/unbound.conf.d/miabunbound.conf
|
cp -f conf/unbound.conf /etc/unbound/unbound.conf.d/miabunbound.conf
|
||||||
|
|
||||||
if [ ! -d /etc/unbound/lists.d ]; then
|
mkdir -p /etc/unbound/lists.d
|
||||||
mkdir /etc/unbound/lists.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl restart unbound
|
systemctl restart unbound
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user