Commit 3c94b587481c0a0b2d94e19e55c11eb830198b61
1 parent
e2695699
Exists in
master
and in
13 other branches
Preserve empty runit directories during build
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
config/software/runit.rb
1 | 1 | # |
2 | 2 | # Copyright:: Copyright (c) 2012-2014 Chef Software, Inc. |
3 | +# Copyright:: Copyright (c) 2014 GitLab.com | |
3 | 4 | # License:: Apache License, Version 2.0 |
4 | 5 | # |
5 | 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
... | ... | @@ -110,5 +111,6 @@ runsvdir -P #{install_path}/service 'log: ...................................... |
110 | 111 | "#{install_dir}/sv", |
111 | 112 | "#{install_dir}/init"].each do |dir| |
112 | 113 | command "mkdir -p #{dir}" |
114 | + command "touch #{dir}/.gitkeep" | |
113 | 115 | end |
114 | 116 | end | ... | ... |