File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments