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

Force chmod 750 to ensure SFTP chroot

This commit is contained in:
tituspijean 2022-02-03 22:14:15 +01:00
parent f1fb0c9c08
commit e015e3310e
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
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"
setfacl -m g:$app: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

View file

@ -105,7 +105,7 @@ chown -R $app:www-data "$final_path"
chown root:root "$final_path"
setfacl -m g:$app: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

View file

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