1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/20euros_ynh.git synced 2024-09-03 18:05:53 +02:00

permission rework

This commit is contained in:
ericgaspar 2020-11-17 08:47:00 +01:00
parent 5bf69c564b
commit 3d7c100468
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 1 additions and 10 deletions

View file

@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers
# MANAGE SCRIPT FAILURE
#=================================================
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
@ -82,7 +81,7 @@ chown -R root: $final_path
ynh_script_progression --message="Configuring SSOwat..." --weight=1
# Make app public if necessary or protect it
[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors"
[ $is_public -eq 1 ] || ynh_permission_update --permission "main" --add "visitors"
#=================================================
# RELOAD NGINX

View file

@ -94,14 +94,6 @@ ynh_add_nginx_config
# Set permissions on app files
chown -R root: $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1
# Make app public if necessary or protect it
[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors"
#=================================================
# RELOAD NGINX
#=================================================