mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
review permissions for upgrade
This commit is contained in:
parent
b0903ce3b6
commit
198e3af816
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ then
|
|||
chmod 755 $final_path
|
||||
|
||||
# Create the visitors permission if needed
|
||||
visitors_enabled=$(ynh_permission_has_user "main" "visitors")
|
||||
visitors_enabled=$(ynh_permission_has_user "main" "visitors" && echo 0 || echo 1)
|
||||
if [[ $visitors_enabled -eq 0 ]]; then
|
||||
ynh_permission_update --permission "main" --add "visitors"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue