1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00
This commit is contained in:
Éric Gaspar 2023-02-14 14:01:22 +01:00
parent d376487506
commit 1c3219cf16
2 changed files with 6 additions and 10 deletions

View file

@ -43,8 +43,8 @@ ram.runtime = "50M"
default = "matrix.org"
[install.init_main_permission]
help.en = "A public application means that anyone can access it. Note that this application provides just files (html, javascript, images, etc.)"
help.fr = "Une application publique signifie que n'importe qui peut y accéder. Notez que cette application ne fournit que des fichiers (html, javascript, images, etc.)"
help.en = "'visitors' permission means that anyone can access it."
help.fr = "Autoriser les 'Visiteurs' signifie que n'importe qui peut y accéder."
type = "group"
default = "visitors"

View file

@ -26,6 +26,10 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
# Set permissions to app files
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# GENERIC FINALIZATION
#=================================================
@ -35,14 +39,6 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# END OF SCRIPT
#=================================================