mirror of
https://github.com/YunoHost-Apps/sogo_ynh.git
synced 2024-09-03 20:26:07 +02:00
Fix permission url
This commit is contained in:
parent
29e63a1196
commit
7810dd3f34
3 changed files with 7 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Opensource groupware for E-Mail, Contacts and Calender",
|
"en": "Opensource groupware for E-Mail, Contacts and Calender",
|
||||||
"fr": "Groupware opensource pour les e-mail, contacts et calendrier"
|
"fr": "Groupware opensource pour les e-mail, contacts et calendrier"
|
||||||
},
|
},
|
||||||
"version": "5.0.1~ynh1",
|
"version": "5.0.1~ynh2",
|
||||||
"url": "https://sogo.nu/",
|
"url": "https://sogo.nu/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "LGPL-2.1,GPL-2.0",
|
"license": "LGPL-2.1,GPL-2.0",
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
"mysql"
|
"mysql"
|
||||||
],
|
],
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.3.0"
|
"yunohost": ">= 11.1.6.1"
|
||||||
},
|
},
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"install" : [
|
"install" : [
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"help": {
|
"help": {
|
||||||
"en": "If it's not public, everybody which want to access to any page of SOGo need to be authenticated on the SSO. On the public mode anybody can access to the authentication page. The shared calendar will be also accessible by anybody who has this link",
|
"en": "If it's not public, everybody which want to access to any page of SOGo need to be authenticated on the SSO. On the public mode anybody can access to the authentication page. The shared calendar will be also accessible by anybody who has this link",
|
||||||
"fr": "Si n'est pas publique, n'importe qui veux accéder à n'importe quelle page de SOGo doit être authentifié dans le SSO. Dans le mode publique n'importe qui peut accéder à la page d'authentification de SOGo. Les agenda partagé seront aussi accessible par n'import qui qui à ce liens."
|
"fr": "Si n'est pas publique, n'importe qui veux accéder à n'importe quelle page de SOGo doit être authentifié dans le SSO. Dans le mode publique n'importe qui peut accéder à la page d'authentification de SOGo. Les agenda partagé seront aussi accessible par n'import qui qui à ce liens."
|
||||||
},
|
},
|
||||||
|
|
|
@ -158,7 +158,7 @@ fi
|
||||||
|
|
||||||
ynh_permission_create --permission="sync_client" --allowed='visitors' --auth_header=false\
|
ynh_permission_create --permission="sync_client" --allowed='visitors' --auth_header=false\
|
||||||
--label="Sync client" --protected=true --show_tile=false\
|
--label="Sync client" --protected=true --show_tile=false\
|
||||||
--additional_urls="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav"
|
--additional_urls="$domain/Microsoft-Server-ActiveSync" "$domain/principals" "$domain/.well-known/caldav" "$domain/.well-known/carddav"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
|
@ -147,13 +147,14 @@ ynh_script_progression --message="Configuring permissions..."
|
||||||
if ! ynh_permission_exists --permission sync_client; then
|
if ! ynh_permission_exists --permission sync_client; then
|
||||||
ynh_permission_create --permission="sync_client" --allowed 'visitors' --auth_header=false\
|
ynh_permission_create --permission="sync_client" --allowed 'visitors' --auth_header=false\
|
||||||
--label="Sync client" --protected=true --show_tile=false\
|
--label="Sync client" --protected=true --show_tile=false\
|
||||||
--additional_urls="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav"
|
--additional_urls="$domain/Microsoft-Server-ActiveSync" "$domain/principals" "$domain/.well-known/caldav" "$domain/.well-known/carddav"
|
||||||
python3 remove_sso_conf_persistent.py $domain \
|
python3 remove_sso_conf_persistent.py $domain \
|
||||||
|| ynh_print_warn --message="Your file /etc/ssowat/""conf.json.persistent doesn't respect the json syntax. The config file wasn't cleaned. Please clean it manually."
|
|| ynh_print_warn --message="Your file /etc/ssowat/""conf.json.persistent doesn't respect the json syntax. The config file wasn't cleaned. Please clean it manually."
|
||||||
else
|
else
|
||||||
ynh_permission_update --permission="sync_client" --add='visitors' --label="Sync client" --protected=true --show_tile=false
|
ynh_permission_update --permission="sync_client" --add='visitors' --label="Sync client" --protected=true --show_tile=false
|
||||||
|
ynh_permission_url --permission "sync_client" --clear_urls
|
||||||
ynh_permission_url --permission "sync_client" --auth_header=false\
|
ynh_permission_url --permission "sync_client" --auth_header=false\
|
||||||
--add_url="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav"
|
--add_url="$domain/Microsoft-Server-ActiveSync" "$domain/principals" "$domain/.well-known/caldav" "$domain/.well-known/carddav"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue