Skip to content

Commit

Permalink
Merge pull request #1241 from habitat-sh/jtimberman/static-owned-by-hab
Browse files Browse the repository at this point in the history
Static directory permissions
  • Loading branch information
bookshelfdave authored Sep 15, 2016
2 parents 56b8ddd + 78a918e commit 7d2dccb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/builder-api/habitat/hooks/init
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

ln -sf {{pkg.path}}/static {{pkg.svc_path}}
rm -df {{pkg.svc_static_path}}/habitat.conf.js
cp -a {{pkg.path}}/static/* {{pkg.svc_static_path}}
rm -f {{pkg.svc_static_path}}/habitat.conf.js
ln -sf {{pkg.svc_config_path}}/habitat.conf.js {{pkg.svc_static_path}}/habitat.conf.js
3 changes: 3 additions & 0 deletions components/sup/src/package/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ impl Package {
try!(Self::create_dir_all(self.pkg_install.svc_var_path()));
try!(util::perm::set_owner(self.pkg_install.svc_var_path(), &user, &group));
try!(util::perm::set_permissions(self.pkg_install.svc_var_path(), 0o700));
try!(Self::create_dir_all(self.pkg_install.svc_static_path()));
try!(util::perm::set_owner(self.pkg_install.svc_static_path(), &user, &group));
try!(util::perm::set_permissions(self.pkg_install.svc_static_path(), 0o700));
// TODO: Not 100% if this directory is still needed, but for the moment it's still here -
// FIN
try!(Self::create_dir_all(self.pkg_install.svc_path().join("toml")));
Expand Down

0 comments on commit 7d2dccb

Please sign in to comment.