Commit 3a31b410 authored by Benoît's avatar Benoît
Browse files

Fixed wrong hostname

parent 7568ce29
......@@ -14,7 +14,7 @@ elif [ $(rpm --eval '%{centos_ver}') = 7 ]; then
if [ -f "/etc/letsencrypt/live/$(hostname)/fullchain.pem" ]; then
/usr/sbin/service httpd start ; /usr/bin/certbot renew ; /usr/sbin/service httpd stop
else
/usr/sbin/service httpd start ; /usr/bin/certbot certonly --webroot --webroot-path /var/www/html/ -d bk10.haisoft.net ; /usr/sbin/service httpd stop
/usr/sbin/service httpd start ; /usr/bin/certbot certonly --webroot --webroot-path /var/www/html/ -d $(hostname) ; /usr/sbin/service httpd stop
fi
/usr/bin/openssl pkcs12 -export -out /root/keystore.pkcs12 -in /etc/letsencrypt/live/$(hostname)/fullchain.pem -inkey /etc/letsencrypt/live/$(hostname)/privkey.pem -password pass:password
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment