Skip to content

Commit

Permalink
[generate_dump] Make regex more specific for disabling/enabling logro…
Browse files Browse the repository at this point in the history
…tate (#701)
  • Loading branch information
Kalimuthu-Velappan authored and jleveque committed Oct 18, 2019
1 parent d77c411 commit f32a450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ find_files() {
# None
###############################################################################
disable_logrotate() {
sed -i '/logrotate/s/^/#/g' /etc/cron.d/logrotate
sed -i '/\/usr\/sbin\/logrotate/s/^/#/g' /etc/cron.d/logrotate
}

###############################################################################
Expand All @@ -269,7 +269,7 @@ disable_logrotate() {
# None
###############################################################################
enable_logrotate() {
sed -i '/logrotate/s/^#*//g' /etc/cron.d/logrotate
sed -i '/\/usr\/sbin\/logrotate/s/^#*//g' /etc/cron.d/logrotate
}

###############################################################################
Expand Down

0 comments on commit f32a450

Please sign in to comment.