Skip to content

Commit

Permalink
update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Jun 22, 2018
1 parent b3c9a3a commit 9d29287
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1907,16 +1907,16 @@ function resetLogs()
header 'RESETTING LOGS'

find '/var/log' \
-type f \
\( \
-regex '.*-[0-9]+' -o \
-regex '.*\.[0-9]+' -o \
-regex '.*\.[0-9]+\.gz' -o \
-regex '.*\.xz' -o \
-regex '.*\.old' \
\) \
-delete \
-print
-type f \
\( \
-regex '.*-[0-9]+' -o \
-regex '.*\.[0-9]+' -o \
-regex '.*\.[0-9]+\.gz' -o \
-regex '.*\.xz' -o \
-regex '.*\.old' \
\) \
-delete \
-print

find '/var/log' -type f -exec cp -f '/dev/null' '{}' \; -print
}
Expand Down

0 comments on commit 9d29287

Please sign in to comment.