File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ retention_log() {
75
75
continue
76
76
fi
77
77
78
- if [ -e " /etc/logrotate.d/$dir_path_name " ]; then
78
+ if [ -e " /etc/logrotate.d/curve- $dir_path_name " ]; then
79
79
continue
80
80
fi
81
81
@@ -111,13 +111,13 @@ retention_log() {
111
111
logrotate_config+=" }\n"
112
112
113
113
# 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 "
115
115
116
116
logrotate -d /etc/logrotate.conf 2>&1 | grep -i ' error:'
117
117
if [ $? -eq 0 ]; then
118
118
die " Logrotate configuration file error.\n"
119
119
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"
121
121
fi
122
122
done
123
123
You can’t perform that action at this time.
0 commit comments