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

Merge remote-tracking branch 'origin/fix_permissions' into 14.4.4

This commit is contained in:
ericgaspar 2021-03-07 15:29:00 +01:00
commit 502ae7e077
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 6 additions and 7 deletions

View file

@ -11,7 +11,7 @@
setup_private=1
setup_public=1
upgrade=1
#upgrade=1 from_commit=9e0c1be11dfe6485ab66f898494eff5bd6bac817
upgrade=1 from_commit=9e0c1be11dfe6485ab66f898494eff5bd6bac817
backup_restore=1
multi_instance=1
change_url=1

View file

@ -14,7 +14,7 @@
"email": "gofannon@riseup.net"
},
"requirements": {
"yunohost": ">= 3.8.1"
"yunohost": ">= 4.1.2"
},
"multi_instance": true,
"services": [

View file

@ -88,13 +88,14 @@ chown -R root: $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=3
ynh_script_progression --message="Configuring permissions..." --weight=3
# 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="/"
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission="main" --add="visitors"
fi
#=================================================

View file

@ -16,8 +16,6 @@ ynh_script_progression --message="Loading installation settings..." --weight=1
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================