Merge pull request #153 from YunoHost/chown

Switching to $app:www-data owner
This commit is contained in:
yalh76 2021-04-23 21:25:05 +02:00 committed by GitHub
commit 9d53281c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -161,8 +161,7 @@ ynh_setup_source --dest_dir="$final_path"
# this will be treated as a security issue. # this will be treated as a security issue.
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root: "$final_path" chown -R $app:www-data "$final_path"
chown root:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION

View File

@ -76,8 +76,7 @@ ynh_restore_file --origin_path="$final_path"
# this will be treated as a security issue. # this will be treated as a security issue.
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root: "$final_path" chown -R $app:www-data "$final_path"
chown root:$app "$final_path"
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION

View File

@ -129,8 +129,7 @@ fi
# this will be treated as a security issue. # this will be treated as a security issue.
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root: "$final_path" chown -R $app:www-data "$final_path"
chown root:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION