diff --git a/playbook/logs/scripts/log_retention.sh b/playbook/logs/scripts/log_retention.sh index c8027e405..bec5d96c8 100644 --- a/playbook/logs/scripts/log_retention.sh +++ b/playbook/logs/scripts/log_retention.sh @@ -75,7 +75,7 @@ retention_log() { continue fi - if [ -e "/etc/logrotate.d/$dir_path_name" ];then + if [ -e "/etc/logrotate.d/curve-$dir_path_name" ];then continue fi @@ -111,13 +111,13 @@ retention_log() { logrotate_config+="}\n" # Write logrotate configuration to file - echo -e "$logrotate_config" > "/etc/logrotate.d/$dir_path_name" + echo -e "$logrotate_config" > "/etc/logrotate.d/curve-$dir_path_name" logrotate -d /etc/logrotate.conf 2>&1 | grep -i 'error:' if [ $? -eq 0 ]; then die "Logrotate configuration file error.\n" else - success "Logrotate configuration generated and written to '$dir_path_name' file.\n" + success "Logrotate configuration generated and written to 'curve-$dir_path_name' file.\n" fi done