mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Merge pull request #84 from YunoHost-Apps/testing
Fix directory permissions for SFTP chroot
This commit is contained in:
commit
48ade2d402
4 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
"en": "Custom Web app with SFTP access to serve static (HTML, CSS, JS) and PHP files",
|
||||
"fr": "Application Web personnalisée avec accès SFTP pour servir des fichiers statiques (HTML, CSS, JS) et PHP"
|
||||
},
|
||||
"version": "1.0~ynh7",
|
||||
"version": "1.0~ynh8",
|
||||
"url": "https://github.com/YunoHost-Apps/my_webapp_ynh",
|
||||
"license": "GPL-3.0-only",
|
||||
"maintainer": {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue