From 1b8e64d83a6eea9004aa05815c1c39bd9cbc5046 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 17 Nov 2016 12:54:35 +0000 Subject: [PATCH] Restart nginx after radicale --- src/freedombone-app-radicale | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-radicale b/src/freedombone-app-radicale index 60f28336..eb0543c1 100755 --- a/src/freedombone-app-radicale +++ b/src/freedombone-app-radicale @@ -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