diff --git a/src/freedombone-app-radicale b/src/freedombone-app-radicale index 607d4804..a029b63b 100755 --- a/src/freedombone-app-radicale +++ b/src/freedombone-app-radicale @@ -60,7 +60,7 @@ function remove_user_radicale { if [ -f /var/www/radicale/collections/${remove_username}.props ]; then rm /var/www/radicale/collections/${remove_username}.props fi - systemctl reload radicale + systemctl restart radicale fi } @@ -82,8 +82,13 @@ function add_user_radicale { echo 'PRODID:-//Radicale//NONSGML Radicale Server//EN' >> /var/www/radicale/collections/${new_username}/calendar echo 'VERSION:2.0' >> /var/www/radicale/collections/${new_username}/calendar echo 'END:VCALENDAR' >> /var/www/radicale/collections/${new_username}/calendar + + addresses_str=$"Addresses" + echo "{\"tag\": \"VADDRESSBOOK\", \"D:displayname\": \"${addresses_str}\"}" > /var/www/radicale/collections/addresses.props + touch /var/www/radicale/collections/addresses chown -R www-data:www-data /var/www/radicale - systemctl reload radicale + chmod -R 755 /var/www/radicale/* + systemctl restart radicale fi echo '0' }