diff options
| author | mo khan <mo@mokhan.ca> | 2017-01-15 14:51:57 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2017-01-15 14:51:57 -0700 |
| commit | db4bc76bf4e12f0ec4e0678ee77c4c52d0e4b2ee (patch) | |
| tree | bf716e4ca73fd233872593b631b41fee6169793a | |
| parent | c4529653feb38becc7650fafcaa15a0af8356044 (diff) | |
create directories with proper permissions.
| -rw-r--r-- | recipes/rails.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/recipes/rails.rb b/recipes/rails.rb index d71b15e..2f74ec6 100644 --- a/recipes/rails.rb +++ b/recipes/rails.rb @@ -14,11 +14,13 @@ template "/etc/profile.d/rails.sh" do variables(env: node["stronglifters"]["env"]) end -directory "#{shared_path}/config" do - mode "0755" - owner node["stronglifters"]["username"] - group node["stronglifters"]["username"] - recursive true +[root_path, shared_path, "#{shared_path}/config"].each do |dir| + directory dir do + mode "0755" + owner node["stronglifters"]["username"] + group node["stronglifters"]["username"] + recursive true + end end file "#{shared_path}/config/database.yml" do |
