diff --git a/README.md b/README.md index ae05b36..b0c5cd2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ *[Lire ce readme en français.](./README_fr.md)* > *This package allows you to install h5ai quickly and simply on a YunoHost server. -If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* +If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* ## Overview [h5ai](https://larsjung.de/h5ai/) is a modern file indexer for HTTP web servers. It allows to display and browse directories containing various documents with a clean and light interface. diff --git a/README_fr.md b/README_fr.md index 33102f2..9b92c5b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -6,7 +6,7 @@ *[Read this readme in english.](./README.md)* > *Ce package vous permet d'installer h5ai rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install) pour apprendre comment l'installer.* +Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/install) pour apprendre comment l'installer.* ## Vue d'ensemble [h5ai](https://larsjung.de/h5ai/) est un indexeur de fichiers moderne pour les serveurs Web HTTP. Il permet d'afficher et de parcourir des répertoires contenant divers documents avec une interface légère et claire. @@ -54,7 +54,6 @@ Le fichier de configuration principal est `_h5ai / private / conf / options.json ## Informations pour les développeurs - Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/h5ai_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. diff --git a/scripts/install b/scripts/install index 4762e14..34b51ad 100644 --- a/scripts/install +++ b/scripts/install @@ -82,7 +82,9 @@ ynh_system_user_create --username=$app #================================================= # Restore permissions on app files -chown -R $app: "$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 4a4e6cb..062c192 100644 --- a/scripts/restore +++ b/scripts/restore @@ -64,7 +64,9 @@ ynh_system_user_create --username=$app #================================================= # Restore permissions on app files -chown -R $app: "$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index ae63d78..63f4e5d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,7 +99,9 @@ ynh_system_user_create --username=$app #================================================= # Set permissions on app files -chown -R $app: "$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # RELOAD NGINX