radicale user directory
This commit is contained in:
parent
466dec4d89
commit
7e9f249e11
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue