Answer the question
In order to leave comments, you need to log in
Why are the write permissions for members of the www-data group removed after git pull, and how can I avoid this?
Actually, the point is in the title. There is a user , a member of the www-data group, initially this user can both read and write to this file. However, after updating the code from the git pull repository, write permissions to the file are killed.
-rw-r--r-- 1 www-data www-data 14253 Oct 15 14:18 main.php
Is it possible to defeat this without much frills? Thank you.
Answer the question
In order to leave comments, you need to log in
How can the code be optimized so that there are no repetitions?
$('.slider_mini_item').each(function( i, el){
...some logic
});
check the permissions on the file inside the repository, because it affects. most likely in the repository a file with read-only rights. This should fix the issue.
You can also write a separate script that performs the "installation": does a git pull, sets permissions.
Another option is more infrastructural and complex: configure default ACL rights. The bottom line is that you set the behavior for the directory such that any new file in this directory will receive certain rights. In your situation, this must be done before the main.php file appears in the directory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question