radicale user directory

This commit is contained in:
Bob Mottram 2016-11-30 10:23:58 +00:00
parent 466dec4d89
commit 7e9f249e11
1 changed files with 8 additions and 0 deletions

View File

@ -299,6 +299,9 @@ function remove_radicale {
if [ -d /var/log/radicale ]; then if [ -d /var/log/radicale ]; then
rm -rf /var/log/radicale rm -rf /var/log/radicale
fi fi
if [ -d /var/lib/radicale ]; then
rm -rf /var/lib/radicale
fi
remove_completion_param install_radicale remove_completion_param install_radicale
sed -i '/radicale/d' $COMPLETION_FILE sed -i '/radicale/d' $COMPLETION_FILE
@ -412,6 +415,11 @@ function install_radicale {
echo "{\"tag\": \"VADDRESSBOOK\", \"D:displayname\": \"${addresses_str}\"}" > /var/www/radicale/collections/addresses.props echo "{\"tag\": \"VADDRESSBOOK\", \"D:displayname\": \"${addresses_str}\"}" > /var/www/radicale/collections/addresses.props
touch /var/www/radicale/collections/addresses touch /var/www/radicale/collections/addresses
if [ ! -d /var/lib/radicale ]; then
mkdir /var/lib/radicale
fi
chown radicale:radicale /var/lib/radicale
chown -R www-data:www-data /var/www/radicale chown -R www-data:www-data /var/www/radicale
chmod -R 755 /var/www/radicale chmod -R 755 /var/www/radicale
chown -R www-data:www-data ${RADICALE_DIRECTORY} chown -R www-data:www-data ${RADICALE_DIRECTORY}