Skip to content

Commit

Permalink
Make hook.sh executable and check if nginx is installed (#3)
Browse files Browse the repository at this point in the history
Check if nginx is installed
  • Loading branch information
Wuodan authored and YasharF committed May 4, 2023
1 parent 9cfdbf1 commit 36093c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hook.sh 100644 → 100755
Expand Up @@ -30,8 +30,10 @@ clean_challenge() {

deploy_cert() {
local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}"
cp "${KEYFILE}" "${FULLCHAINFILE}" /etc/nginx/ssl/; chown -R root: /etc/nginx/ssl
systemctl reload nginx
if [[ -d /etc/nginx/ssl/ ]]; then
cp "${KEYFILE}" "${FULLCHAINFILE}" /etc/nginx/ssl/; chown -R root: /etc/nginx/ssl
systemctl reload nginx
fi
}

unchanged_cert() {
Expand Down

0 comments on commit 36093c9

Please sign in to comment.