1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

conditions fi

This commit is contained in:
Robles Rodolphe 2021-09-26 16:15:12 +02:00 committed by GitHub
parent d6fcd29677
commit 557b58fd01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ then
# Create the visitors permission if needed
visitors_enabled=$(ynh_permission_has_user "main" "visitors")
if [[ $visitors_enabled -eq 0 ]]
if [[ $visitors_enabled -eq 0 ]]; then
ynh_permission_update --permission "main" --add "visitors"
fi
@ -135,7 +135,7 @@ then
ynh_local_curl "/index.php"
upgrade_type="UPGRADE_APP"
if [[ $visitors_enabled -eq 0 ]]
if [[ $visitors_enabled -eq 0 ]]; then
ynh_permission_update --permission "main" --remove "visitors"
fi