Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit 42190e6

Browse files
flaccidsethvargo
authored andcommitted
[COOK-2079] Create directory before touching restart.txt
Signed-off-by: Seth Vargo <sethvargo@gmail.com>
1 parent 104bdd0 commit 42190e6

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

providers/passenger_apache2.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434
new_resource.server_aliases server_aliases
3535
end
3636

37-
new_resource.restart_command "touch #{new_resource.application.path}/current/tmp/restart.txt" unless new_resource.restart_command
37+
new_resource.restart_command do
38+
directory "#{new_resource.application.path}/current/tmp" do
39+
recursive true
40+
end
41+
file "#{new_resource.application.path}/current/tmp/restart.txt" do
42+
action :touch
43+
end
44+
end unless new_resource.restart_command
45+
3846
end
3947

4048
action :before_deploy do

0 commit comments

Comments
 (0)