Restart nginx after radicale
This commit is contained in:
parent
c3c056d8ea
commit
1b8e64d83a
|
@ -173,6 +173,7 @@ function upgrade_radicale {
|
||||||
sed -i "s|radicale version.*|radicale version:$RADICALE_VERSION|g" ${COMPLETION_FILE}
|
sed -i "s|radicale version.*|radicale version:$RADICALE_VERSION|g" ${COMPLETION_FILE}
|
||||||
chown -R www-data:www-data /var/www/radicale
|
chown -R www-data:www-data /var/www/radicale
|
||||||
systemctl restart radicale
|
systemctl restart radicale
|
||||||
|
systemctl restart nginx
|
||||||
}
|
}
|
||||||
|
|
||||||
function backup_local_radicale {
|
function backup_local_radicale {
|
||||||
|
@ -470,14 +471,12 @@ function install_radicale {
|
||||||
|
|
||||||
update_default_domain
|
update_default_domain
|
||||||
|
|
||||||
nginx_ensite radicale
|
systemctl restart nginx
|
||||||
systemctl reload nginx
|
|
||||||
|
|
||||||
if ! grep -q "# Radicale" /home/$MY_USERNAME/README; then
|
if ! grep -q "# Radicale" /home/$MY_USERNAME/README; then
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
|
||||||
echo $'# Radicale' >> /home/$MY_USERNAME/README
|
echo $'# Radicale' >> /home/$MY_USERNAME/README
|
||||||
echo $"Your Radicale password is: ${RADICALE_PASSWORD}" >> /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
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
|
||||||
chmod 600 /home/$MY_USERNAME/README
|
chmod 600 /home/$MY_USERNAME/README
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue