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:
parent
b851aa6078
commit
3919a3f603
2 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue