diff --git a/full_domain_app_ynh/scripts/install b/full_domain_app_ynh/scripts/install index c436dac..73f8b06 100644 --- a/full_domain_app_ynh/scripts/install +++ b/full_domain_app_ynh/scripts/install @@ -20,7 +20,8 @@ mkdir /var/www/$app cp ../conf/index.html /var/www/$app # Set the app as public -yunohost app setting $app unprotected_uris -v "/" +ynh_permission_update --permission="main" --add="visitors" +#yunohost app setting $app unprotected_uris -v "/" # Reload Nginx and regenerate SSOwat conf systemctl reload nginx diff --git a/legacy_app_ynh/scripts/install b/legacy_app_ynh/scripts/install index 9c92322..dab0ac3 100644 --- a/legacy_app_ynh/scripts/install +++ b/legacy_app_ynh/scripts/install @@ -39,7 +39,8 @@ ynh_mysql_setup_db --db_user=$db_user --db_name=$db_user --db_pwd=$db_pwd sudo cp ../sources/importantfile /etc/ # Set the app as public -[ $is_public -eq 0 ] || sudo yunohost app setting $app unprotected_uris -v "/" +[ $is_public -eq 0 ] || ynh_permission_update --permission="main" --add="visitors" +#sudo yunohost app setting $app unprotected_uris -v "/" # Reload Nginx and regenerate SSOwat conf sudo service nginx reload