We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56cf895 commit f37f499Copy full SHA for f37f499
playbook/logs/scripts/log_retention.sh
@@ -75,8 +75,12 @@ retention_log() {
75
continue
76
fi
77
78
+ if [ -e "/etc/logrotate.d/$dir_path_name" ];then
79
+ continue
80
+ fi
81
+
82
# Generate logrotate configuration
- logrotate_config="${file} {\n"
83
+ logrotate_config="${dir_path}/*.log*[!gz] ${dir_path}/*.log {\n"
84
logrotate_config+=" rotate ${rotate}\n"
85
logrotate_config+=" ${period}\n"
86
0 commit comments