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:
parent
c287a7c21b
commit
270449e297
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ install_carddav() {
|
||||||
|
|
||||||
# Look for installed and supported CardDAV servers
|
# Look for installed and supported CardDAV servers
|
||||||
for carddav_app in "owncloud" "baikal"; do
|
for carddav_app in "owncloud" "baikal"; do
|
||||||
local app_id=$(sudo yunohost app list --installed --output-as plain \
|
local app_id=$(sudo yunohost app list --installed -f "$carddav_app" \
|
||||||
-f "$carddav_app" | ynh_get_plain_key '#id' | head -1)
|
--output-as json | grep -Po '"id":[ ]?"\K.*?(?=")' | head -1)
|
||||||
[[ -z "$app_id" ]] || {
|
[[ -z "$app_id" ]] || {
|
||||||
# Retrieve app settings and enable relevant preset
|
# Retrieve app settings and enable relevant preset
|
||||||
carddav_domain=$(ynh_app_setting_get "$app_id" domain)
|
carddav_domain=$(ynh_app_setting_get "$app_id" domain)
|
||||||
|
|
Loading…
Reference in a new issue