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 #84 from YunoHost-Apps/testing

Fix directory permissions for SFTP chroot
This commit is contained in:
tituspijean 2022-02-03 22:31:07 +01:00 committed by GitHub
commit 48ade2d402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
"en": "Custom Web app with SFTP access to serve static (HTML, CSS, JS) and PHP files", "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" "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", "url": "https://github.com/YunoHost-Apps/my_webapp_ynh",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"maintainer": { "maintainer": {

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