Skip to content

Commit 94d2ab4

Browse files
Merge pull request vicenteguerra#30 from r0v/master
Fix permission
2 parents d11e059 + 97231a7 commit 94d2ab4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ define("AFTER_PULL", "/usr/bin/node ./node_modules/gulp/bin/gulp.js default");
3838
When __deploy.php__ is called by the web-hook, the webserver user (`www`, `www-data`, `apache`, etc...) will attempt to run `git pull ...`. Since you probably cloned into the repository as yourself, and your user therefore owns it, the webserver user needs to be given write access. It is suggested this be accomplished by changing the repository group to the webserver user's and giving the group write permissions:
3939

4040
1. Open a terminal to the directory containing the repository on the server.
41-
2. run `sudo chown -R yourusername:webserverusername custom-project-repo-dir/` to change the group of the repo.
42-
3. run `sudo chmod -R g+s custom-project-repo-dir/` to make the group assignment inherited for new files/dirs.
43-
4. run `sudo chmod -R 775 custom-project-repo-dir/` to set read & write for both owner and group.
41+
2. run `sudo chown -R $USER:webserverusername custom-project-repo-dir/.git/` to change the group of the repo.
42+
3. run `sudo chmod -R g+s custom-project-repo-dir/.git/` to make the group assignment inherited for new files/dirs.
43+
4. run `sudo chmod -R 775 custom-project-repo-dir/.git/` to set read & write for both owner and group.
4444

4545
---
4646

0 commit comments

Comments
 (0)