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:
commit
149dc8e3bf
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue