Browse Source

use systemctl instead of service, as systemctl is now massively used..

master
victor héry 6 years ago
parent
commit
6340eda4ae
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      create-certificat
  2. +1
    -1
      renew-certificates

+ 1
- 1
create-certificat View File

@ -16,7 +16,7 @@ ${certbot_bin} certonly --domains $1 --renew-by-default --http-01-port 63443 -
if [ $? -eq 0 ]; then
echo "$(date +%c) Success ! Now creating ${1}.pem"
cat /etc/letsencrypt/live/$1/fullchain.pem /etc/letsencrypt/live/$1/privkey.pem > ${haproxy_pem_path}/$1.pem
service haproxy reload
systemctl reload haproxy
else
echo "$(date +%c) Error creating certificate with error code $?, exit script..."
exit 1

+ 1
- 1
renew-certificates View File

@ -22,5 +22,5 @@ done
# At the end, reload haproxy
echo "$(date +%c) Reload haproxy"
service haproxy reload
systemctl reload haproxy

Loading…
Cancel
Save