C
C
coderisimo2019-10-15 17:47:22
JavaScript
coderisimo, 2019-10-15 17:47:22

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

3 answer(s)
M
Maxim Timofeev, 2018-07-24
@webinar

How can the code be optimized so that there are no repetitions?

use loops like
$('.slider_mini_item').each(function( i, el){
    ...some logic
});

api.jquery.com/jquery.each

D
Dmitry Churin, 2019-10-15
@Intey

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.

M
Mikhail Osher, 2019-10-15
@miraage

https://stackoverflow.com/questions/1580596/how-do...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question