aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/s04.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/s04.sh')
-rw-r--r--scripts/s04.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/s04.sh b/scripts/s04.sh
new file mode 100644
index 0000000..64e7528
--- /dev/null
+++ b/scripts/s04.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ./settings00.sh
+
+for file in /etc/logrotate.d/* ; do
+ if grep -Eq "(^|[^#y])compress" "$file" ; then
+ sed -i -r "s/(^|[^#y])(compress)/\1#\2/" "$file"
+ fi
+done