1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

Test if baikal is present

Same as agendav
This commit is contained in:
polytan02 2017-01-18 11:32:48 +00:00
parent b851aa6078
commit 3919a3f603
2 changed files with 2 additions and 4 deletions

View file

@ -104,8 +104,7 @@ sed -i "s@ALIASTOCHANGE@$final_path@g" ../conf/config.php
sed -i "s@LOGTOCHANGE@$final_logpath@g" ../conf/config.php
# Enable caldav carddav support
sudo yunohost app list -f baikal --json | grep '"installed": true'
if [ "$?" -eq 0 ]; then
if sudo yunohost app list --installed -f baikal | grep -q id ; then
echo "Detected Baikal"
caldavdomain=$(sudo yunohost app setting baikal domain)
caldavpath=$(sudo yunohost app setting baikal path)

View file

@ -65,8 +65,7 @@ sed -i "s@ALIASTOCHANGE@$final_path@g" ../conf/config.php
sed -i "s@LOGTOCHANGE@$final_logpath@g" ../conf/config.php
# Enable caldav carddav support
sudo yunohost app list -f baikal --json | grep '"installed": true'
if [ "$?" -eq 0 ]; then
if sudo yunohost app list --installed -f baikal | grep -q id ; then
echo "Detected Baikal"
caldavdomain=$(sudo yunohost app setting baikal domain)
caldavpath=$(sudo yunohost app setting baikal path)