mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Attempt to simplify permission migration
This commit is contained in:
parent
5aa2556306
commit
5b0269622a
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ EOF
|
||||||
if [[ "$1" == "set" ]] && [[ "${4:-}" == "/" ]]
|
if [[ "$1" == "set" ]] && [[ "${4:-}" == "/" ]]
|
||||||
then
|
then
|
||||||
ynh_permission_update --permission "main" --add "visitors"
|
ynh_permission_update --permission "main" --add "visitors"
|
||||||
elif [[ "$1" == "delete" ]] && [[ "${current_value:-}" == "/" ]]
|
elif [[ "$1" == "delete" ]] && [[ "${current_value:-}" == "/" ]] && [[ -n "$(ynh_app_setting_get --app=$2 --key='is_public' )" ]]
|
||||||
then
|
then
|
||||||
ynh_permission_update --permission "main" --remove "visitors"
|
ynh_permission_update --permission "main" --remove "visitors"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue