Radicale log

This commit is contained in:
Bob Mottram 2016-11-15 20:02:39 +00:00
parent d0b52d8118
commit 9e845ae0ec
1 changed files with 10 additions and 0 deletions

View File

@ -180,6 +180,9 @@ function remove_radicale {
if [ -d /var/www/radicale ]; then
rm -rf /var/www/radicale
fi
if [ -f touch /var/log/radicale/radicale.log ]; then
rm -rf /var/log/radicale
fi
remove_completion_param install_radicale
sed -i '/radicale/d' $COMPLETION_FILE
@ -195,6 +198,13 @@ function install_radicale {
fi
fi
if [ ! -d /var/log/radicale ]; then
mkdir /var/log/radicale
fi
if [ ! -f /var/log/radicale/radicale.log ]; then
touch /var/log/radicale/radicale.log
fi
apt-get -yq install python-radicale uwsgi uwsgi-plugin-python radicale
if [ ! -d ${RADICALE_DIRECTORY} ]; then