Skip to content

Commit ffa2c06

Browse files
committed
[COOK-3034] Allow script parameters to be multiline Strings or Arrays
1 parent 61a9ea6 commit ffa2c06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

definitions/logrotate_app.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
:rotate => params[:rotate],
6262
:olddir => params[:olddir],
6363
:sharedscripts => params[:sharedscripts],
64-
:postrotate => params[:postrotate],
65-
:prerotate => params[:prerotate],
66-
:firstaction => params[:firstaction],
67-
:lastaction => params[:lastaction],
64+
:postrotate => Array(params[:postrotate]).join("\n"),
65+
:prerotate => Array(params[:prerotate]).join("\n"),
66+
:firstaction => Array(params[:firstaction]).join("\n"),
67+
:lastaction => Array(params[:lastaction]).join("\n"),
6868
:options => options
6969
)
7070
notifies :reload, 'service[logrotate]', :delayed

0 commit comments

Comments
 (0)