UFW.sh: Fix syntax of logrotate config modification

Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
thecalcaholic 2022-09-15 17:26:29 +02:00
parent 1086361c35
commit c3fbaa61ac
No known key found for this signature in database
GPG Key ID: 3510056072886A8F

View File

@ -17,7 +17,7 @@ install()
systemctl disable ufw
# Disable logging to kernel
grep -q maxsize /etc/logrotate.d/ufw || sed -i /weekly/amaxsize2M /etc/logrotate.d/ufw
grep -q maxsize /etc/logrotate.d/ufw || sed -i '/weekly/amaxsize 2M' /etc/logrotate.d/ufw
return 0
}