Skip to content

Commit

Permalink
Change conf/ mode to 710 for HTML apps
Browse files Browse the repository at this point in the history
  • Loading branch information
j8r committed Jan 15, 2020
1 parent 1e3361b commit 9daea07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prefix/app.cr
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ struct DPPM::Prefix::App
def set_permissions
File.chmod(libs_path.to_s, 0o700) if Dir.exists? libs_path.to_s
File.chmod(app_path.to_s, 0o750) if !File.symlink? app_path.to_s
File.chmod conf_path.to_s, 0o700
# HTML application may have configarations which have to be accessible by the web server
File.chmod conf_path.to_s, (pkg_file.type.html? ? 0o710 : 0o700)
# Directory execution for group is needed for reverse proxies to access their configuration
if File.exists?(site_path_str = site_path.to_s)
File.chmod site_path_str, 0o010
Expand Down

0 comments on commit 9daea07

Please sign in to comment.