mirror of
https://github.com/YunoHost-Apps/radicale_ynh.git
synced 2024-09-03 20:16:14 +02:00
Fix permission
This commit is contained in:
parent
595fc9817c
commit
c33cb22c07
2 changed files with 4 additions and 14 deletions
|
@ -265,14 +265,14 @@ then
|
||||||
# Replace radicale by InfCloud into YunoHost portal
|
# Replace radicale by InfCloud into YunoHost portal
|
||||||
ynh_app_setting_set $app path ${path_url%/}/infcloud
|
ynh_app_setting_set $app path ${path_url%/}/infcloud
|
||||||
# Protect InfCloud access
|
# Protect InfCloud access
|
||||||
|
ynh_app_setting_set $app protected_uris "/"
|
||||||
|
domain_regex=$(echo "$domain" | sed 's@-@.@g')
|
||||||
# Radicale is always accessible (For access to ressources)
|
# Radicale is always accessible (For access to ressources)
|
||||||
|
ynh_app_setting_set $app skipped_regex "$domain_regex$path_url"
|
||||||
else
|
else
|
||||||
# If only radicale is installed
|
# If only radicale is installed
|
||||||
# Radicale is always accessible (For access to ressources)
|
# Radicale is always accessible (For access to ressources)
|
||||||
|
ynh_app_setting_set $app unprotected_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -116,16 +116,6 @@ ynh_clean_setup () {
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# Migrate legacy permissions to new system
|
|
||||||
#=================================================
|
|
||||||
if ynh_legacy_permissions_exists
|
|
||||||
then
|
|
||||||
ynh_legacy_permissions_delete_all
|
|
||||||
|
|
||||||
ynh_app_setting_delete --app=$app --key=is_public
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK THE PATH
|
# CHECK THE PATH
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue