File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ find_files() {
256256# None
257257# ##############################################################################
258258disable_logrotate () {
259- sed -i ' /logrotate/s/^/#/g' /etc/cron.d/logrotate
259+ sed -i ' /\/usr\/sbin\/ logrotate/s/^/#/g' /etc/cron.d/logrotate
260260}
261261
262262# ##############################################################################
@@ -269,7 +269,7 @@ disable_logrotate() {
269269# None
270270# ##############################################################################
271271enable_logrotate () {
272- sed -i ' /logrotate/s/^#*//g' /etc/cron.d/logrotate
272+ sed -i ' /\/usr\/sbin\/ logrotate/s/^#*//g' /etc/cron.d/logrotate
273273}
274274
275275# ##############################################################################
You can’t perform that action at this time.
0 commit comments