From dc2b2ead9f17ece55c4aac7939c837887a17aaab Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Mon, 28 Aug 2023 03:42:47 +0900 Subject: [PATCH] Update dhcp_interfaces.cfg --- Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg b/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg index 990f5ec..3de61b6 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg @@ -66,8 +66,8 @@ runcmd: - sed -ri '/set nocompatible/a\set backspace=2' /etc/vim/vimrc.tiny - mv /etc/netplan/50-cloud-init.yaml /etc/netplan/20-netcfg.yaml - netplan apply - - sed -i '/\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf - - sed -ri 's/backend.*/backend = systemd/g' /etc/fail2ban/jail.conf + - sed -i '/^\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf + - sed -ri 's/^backend = auto/backend = systemd/g' /etc/fail2ban/jail.conf - update-rc.d fail2ban enable - /etc/init.d/fail2ban restart - rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg