Restart nginx after radicale

This commit is contained in:
Bob Mottram 2016-11-17 12:54:35 +00:00
parent c3c056d8ea
commit 1b8e64d83a
1 changed files with 3 additions and 4 deletions

View File

@ -173,6 +173,7 @@ function upgrade_radicale {
sed -i "s|radicale version.*|radicale version:$RADICALE_VERSION|g" ${COMPLETION_FILE}
chown -R www-data:www-data /var/www/radicale
systemctl restart radicale
systemctl restart nginx
}
function backup_local_radicale {
@ -470,14 +471,12 @@ function install_radicale {
update_default_domain
nginx_ensite radicale
systemctl reload nginx
systemctl restart nginx
if ! grep -q "# Radicale" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
echo $'# Radicale' >> /home/$MY_USERNAME/README
echo $"Your Radicale password is: ${RADICALE_PASSWORD}" >> /home/$MY_USERNAME/README
echo $"Radicale is accessible via https://${DEFAULT_DOMAIN_NAME}/radicale/${MY_USERNAME}/calendar/" >> /home/$MY_USERNAME/README
echo $"Radicale is accessible via https://${DEFAULT_DOMAIN_NAME}/radicale/" >> /home/$MY_USERNAME/README
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
chmod 600 /home/$MY_USERNAME/README
else