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:
parent
d6fcd29677
commit
557b58fd01
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue