mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
legacy_app: Replace super legacy unprotected_uris setting (not supported in bookworm anymore) with ynh_permission_update
This commit is contained in:
parent
92d98f3097
commit
3120381ec1
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue