I've a LAMP environment on my VPS where I would like to set up a versioning system. I'm using git and right now I did in order these things:
/home/git
/var/git
folder where I'm storing all --bare
repositories /var/www/myproject
initialized with git init
and linked with git remote add hub
to my bare directory /var/git/myproject.git/hooks
a post-update that pulls files into my working directory in /var/wwww/myproject
Now my problem is that my /var/www
and all subdirectories are assigned to the www-data
user and group and with these everything works like a charm but after a pull or an init from git things have as user and group git:git
and permission of course breaks in ftp, web installers etc.
Any one have an idea on how to proceed at this point? many thanks.
将git用户添加到www-data组: sudo usermod -a -G www-data git
应该有所帮助-有关更多信息,请访问http://machiine.com/2013/easy-way-to-give-user-permission-to -edit-和添加文件正在varwww /
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.