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