1
0
Fork 0
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:
Robles Rodolphe 2021-09-27 12:49:59 +02:00
parent b0903ce3b6
commit 198e3af816

View file

@ -121,9 +121,9 @@ then
ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url/';" --target_file="$final_path/config.local.php"
fi
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