1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/agendav_ynh.git synced 2024-09-03 20:36:12 +02:00

[fix] wrong detection of baikal and radicale installation

This commit is contained in:
Julien Malik 2014-08-15 12:05:24 +02:00
parent fef269c129
commit 754a5ff390

View file

@ -13,11 +13,15 @@ fi
baikal=0
radicale=0
if [[ $(sudo yunohost app list --json | grep -q '"id": "baikal"') -eq 0 ]]; then
sudo yunohost app list -f baikal --json | grep '"installed": true' && baikal=1
sudo yunohost app list -f radicale --json | grep '"installed": true' && radicale=1
if [ "$baikal" == "1" ] ; then
echo "Detected Baikal"
baikal=1
caldavapp=baikal
elif [[ $(sudo yunohost app list --json | grep -q '"id": "radicale"')? -eq 0 ]]; then
elif [ "$radicale" == "1" ] ; then
echo "Detected Radicale"
radicale=1
caldavapp=radicale