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:
parent
06655136e6
commit
e3238b7d7b
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue