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

fix for bash

This commit is contained in:
Julien Malik 2014-07-02 09:38:48 +02:00
parent 06655136e6
commit e3238b7d7b

View file

@ -58,11 +58,11 @@ cd $final_path/web/application && ln -s ../config config && cd $currentpath
caldavdomain=$(sudo yunohost app setting $caldavapp domain)
caldavpath=$(sudo yunohost app setting $caldavapp path)
if [ $baikal -eq 1 ]; then
caldav_principal_url="https://$(caldavdomain)$(caldavpath)/cal.php/%u/"
caldav_calendar_url="https://$(caldavdomain)$(caldavpath)/cal.php/calendars/%s/"
caldav_principal_url="https://$caldavdomain$caldavpath/cal.php/%u/"
caldav_calendar_url="https://$caldavdomain$caldavpath/cal.php/calendars/%s/"
elif [ $radicale -eq 1 ]; then
caldav_principal_url="https://$(caldavdomain)$(caldavpath)/%u/"
caldav_calendar_url="https://$(caldavdomain)$(caldavpath)/%s/"
caldav_principal_url="https://$caldavdomain$caldavpath/%u/"
caldav_calendar_url="https://$caldavdomain$caldavpath/%s/"
fi
sed -i "s@YNH_CALDAV_PRINCIPAL_URL@$caldav_principal_url@g" ../conf/caldav.php
sed -i "s@YNH_CALDAV_CALENDAR_URL@$caldav_calendar_url@g" ../conf/caldav.php