1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vaultwarden_ynh.git synced 2024-09-03 18:26:31 +02:00

Upgrade to new permission system

This commit is contained in:
yalh76 2020-04-09 17:05:07 +02:00
parent b1540ca80f
commit cbaf67dd0f
3 changed files with 7 additions and 7 deletions

View file

@ -13,7 +13,7 @@
"name": "yalh76"
},
"requirements": {
"yunohost": ">= 3.5"
"yunohost": ">= 3.8"
},
"multi_instance": true,
"services": [

View file

@ -219,13 +219,13 @@ ynh_add_fail2ban_config --logpath="/var/log/$app/$app.log" --failregex="^.*Usern
#=================================================
ynh_print_info --message="Configuring SSOwat..."
ynh_permission_update --permission="main" --auth_header=false
# Make app public if necessary
if [ $is_public -eq 1 ]
then
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
ynh_permission_update --permission="main" --add="visitors"
fi
ynh_app_setting_set --app=$app --key=noauth_uris --value="/"
#=================================================
# RELOAD NGINX

View file

@ -214,13 +214,13 @@ chown -R "$app":"$app" /var/log/"$app"
#=================================================
ynh_print_info --message="Upgrading SSOwat configuration..."
ynh_permission_update --permission="main" --auth_header=false
# Make app public if necessary
if [ $is_public -eq 1 ]
then
# unprotected_uris allows SSO credentials to be passed anyway
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
ynh_permission_update --permission="main" --add="visitors"
fi
ynh_app_setting_set --app=$app --key=noauth_uris --value="/"
#=================================================
# START SYSTEMD SERVICE