legacy_app: Replace super legacy unprotected_uris setting (not supported in bookworm anymore) with ynh_permission_update

This commit is contained in:
Alexandre Aubin 2023-10-07 17:15:45 +02:00
parent 92d98f3097
commit 3120381ec1
2 changed files with 4 additions and 2 deletions

View file

@ -20,7 +20,8 @@ mkdir /var/www/$app
cp ../conf/index.html /var/www/$app cp ../conf/index.html /var/www/$app
# Set the app as public # 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 # Reload Nginx and regenerate SSOwat conf
systemctl reload nginx systemctl reload nginx

View file

@ -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/ sudo cp ../sources/importantfile /etc/
# Set the app as public # 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 # Reload Nginx and regenerate SSOwat conf
sudo service nginx reload sudo service nginx reload