Move creation of address book

This commit is contained in:
Bob Mottram 2016-11-17 15:19:48 +00:00
parent d55591b678
commit 95a8ba3960
1 changed files with 9 additions and 5 deletions

View File

@ -83,9 +83,6 @@ function add_user_radicale {
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
chmod -R 755 /var/www/radicale/*
systemctl restart radicale
@ -357,8 +354,6 @@ function install_radicale {
if [ ! -d /var/www/radicale/collections ]; then
mkdir -p /var/www/radicale/collections
fi
chown -R www-data:www-data /var/www/radicale
chmod -R 755 /var/www/radicale/collections
# create the configuration
echo '[server]' > ${RADICALE_DIRECTORY}/config
@ -405,6 +400,15 @@ function install_radicale {
echo '' >> /etc/systemd/system/radicale.service
echo '[Install]' >> /etc/systemd/system/radicale.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/radicale.service
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
chmod -R 755 /var/www/radicale
chown -R www-data:www-data ${RADICALE_DIRECTORY}
systemctl enable radicale
systemctl start radicale