Skip to content

Commit b4985ba

Browse files
committed
curve prefix
Signed-off-by: Liao PengFei <[email protected]>
1 parent 3c28c56 commit b4985ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playbook/logs/scripts/log_retention.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ retention_log() {
7575
continue
7676
fi
7777

78-
if [ -e "/etc/logrotate.d/$dir_path_name" ];then
78+
if [ -e "/etc/logrotate.d/curve-$dir_path_name" ];then
7979
continue
8080
fi
8181

@@ -111,13 +111,13 @@ retention_log() {
111111
logrotate_config+="}\n"
112112

113113
# Write logrotate configuration to file
114-
echo -e "$logrotate_config" > "/etc/logrotate.d/$dir_path_name"
114+
echo -e "$logrotate_config" > "/etc/logrotate.d/curve-$dir_path_name"
115115

116116
logrotate -d /etc/logrotate.conf 2>&1 | grep -i 'error:'
117117
if [ $? -eq 0 ]; then
118118
die "Logrotate configuration file error.\n"
119119
else
120-
success "Logrotate configuration generated and written to '$dir_path_name' file.\n"
120+
success "Logrotate configuration generated and written to 'curve-$dir_path_name' file.\n"
121121
fi
122122
done
123123

0 commit comments

Comments
 (0)