Skip to content
Browse files

Chmod to allow nginx access via group to a project home dir.

  • Loading branch information...
1 parent 7eab378 commit 307e3a1662fffa36abe069938b177ffea63edc97 @wayneeseguin wayneeseguin committed Mar 23, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 nginx/bin/server
View
4 nginx/bin/server
@@ -16,6 +16,10 @@ if [[ -s "$extension_templates_path/server.conf.template" ]] ; then
mkdir -p "$nginx_config_path/servers/"
fi
+ if [[ -d "/home/${project_name}" ]] ; then
+ chmod g+rx "/home/${project_name}"
+ fi
+
sed -e "s#{{project}}#$project_name#g" \
"$extension_templates_path/server.conf.template" \
> "$nginx_path/servers/$project_name.conf"

0 comments on commit 307e3a1

Please sign in to comment.
Something went wrong with that request. Please try again.