From d9b877957c52789e494aeee1ffd4d3128dd9e597 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 5 Mar 2018 19:27:06 +0800 Subject: web: create files/{acme,nginx} to organize files better --- roles/web/files/deploy.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 roles/web/files/deploy.sh (limited to 'roles/web/files/deploy.sh') diff --git a/roles/web/files/deploy.sh b/roles/web/files/deploy.sh deleted file mode 100755 index 9c6fff2..0000000 --- a/roles/web/files/deploy.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# -# Restart the services after renewing the certificate(s) to deploy the -# changed certificate(s). -# -# This script will be weekly executed. See "/etc/periodic.conf". -# -# Aaron LI -# - -# Services to be restarted after ACME certificate update -SERVICES="nginx dovecot postfix" - -for srv in ${SERVICES}; do - if service ${srv} status >/dev/null 2>&1; then - echo "ACME deploy: restarting ${srv} ..." - service ${srv} restart - else - echo "ACME deploy: service ${srv} not running" - fi -done -- cgit v1.2.2