1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Merge pull request #83 from YunoHost-Apps/perms

Force chmod 750 to ensure SFTP chroot
This commit is contained in:
tituspijean 2022-02-03 22:19:38 +01:00 committed by GitHub
commit 149dc8e3bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ chown -R $app:www-data "$final_path"
chown root:root "$final_path" chown root:root "$final_path"
setfacl -m g:$app:r-x "$final_path" setfacl -m g:$app:r-x "$final_path"
setfacl -m g:www-data:r-x "$final_path" setfacl -m g:www-data:r-x "$final_path"
chmod o-rwx "$final_path" chmod 750 "$final_path"
#================================================= #=================================================
# PHP-FPM CONFIGURATION # PHP-FPM CONFIGURATION

View file

@ -105,7 +105,7 @@ chown -R $app:www-data "$final_path"
chown root:root "$final_path" chown root:root "$final_path"
setfacl -m g:$app:r-x "$final_path" setfacl -m g:$app:r-x "$final_path"
setfacl -m g:www-data:r-x "$final_path" setfacl -m g:www-data:r-x "$final_path"
chmod o-rwx "$final_path" chmod 750 "$final_path"
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION

View file

@ -201,7 +201,7 @@ chown -R $app:www-data "$final_path"
chown root:root "$final_path" chown root:root "$final_path"
setfacl -m g:$app:r-x "$final_path" setfacl -m g:$app:r-x "$final_path"
setfacl -m g:www-data:r-x "$final_path" setfacl -m g:www-data:r-x "$final_path"
chmod o-rwx "$final_path" chmod 750 "$final_path"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX