Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-15 18:26:29 +0300
committerthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-15 18:31:17 +0300
commitc3fbaa61ac4db7ff475594c4b8f7902be84e541d (patch)
tree85394871dab195a7785b3084c81db7697f184842
parent1086361c35f533f11a35706de0a526f9a509bab0 (diff)
UFW.sh: Fix syntax of logrotate config modification
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r--bin/ncp/SECURITY/UFW.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp/SECURITY/UFW.sh b/bin/ncp/SECURITY/UFW.sh
index 21c33836..0ff73b2c 100644
--- a/bin/ncp/SECURITY/UFW.sh
+++ b/bin/ncp/SECURITY/UFW.sh
@@ -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
}