1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

[enh] Improve carddav app id grep in waiting a better helper

This commit is contained in:
Jérôme Lebleu 2016-05-24 22:20:37 +02:00
parent c287a7c21b
commit 270449e297

View file

@ -106,8 +106,8 @@ install_carddav() {
# Look for installed and supported CardDAV servers
for carddav_app in "owncloud" "baikal"; do
local app_id=$(sudo yunohost app list --installed --output-as plain \
-f "$carddav_app" | ynh_get_plain_key '#id' | head -1)
local app_id=$(sudo yunohost app list --installed -f "$carddav_app" \
--output-as json | grep -Po '"id":[ ]?"\K.*?(?=")' | head -1)
[[ -z "$app_id" ]] || {
# Retrieve app settings and enable relevant preset
carddav_domain=$(ynh_app_setting_get "$app_id" domain)