mirror of https://github.com/Aidaho12/haproxy-wi
v4.5.6.0
parent
2b49f5ef6e
commit
ccc9da256b
|
@ -4,21 +4,20 @@ cd /etc/letsencrypt/live/
|
||||||
email='{{EMAIL}}'
|
email='{{EMAIL}}'
|
||||||
path='{{SSL_PATH}}'
|
path='{{SSL_PATH}}'
|
||||||
|
|
||||||
ps ax |grep 'certbot certonly --standalone' |grep -v grep |awk '{print $1}' |xargs kill
|
command='certbot certonly --standalone'
|
||||||
|
|
||||||
command='sudo certbot certonly --standalone'
|
|
||||||
|
|
||||||
for i in $(ls -d */ |awk -F"/" '{print $1}'); do
|
for i in $(ls -d */ |awk -F"/" '{print $1}'); do
|
||||||
echo $i
|
echo $i
|
||||||
command+=" -d "$i
|
command+=" -d "$i
|
||||||
done
|
done
|
||||||
|
|
||||||
command+=' --non-interactive --agree-tos --email $email --http-01-port=8888'
|
command+=" --non-interactive --agree-tos --email $email --http-01-port=8888"
|
||||||
|
|
||||||
|
bash -c "$command"
|
||||||
|
|
||||||
for i in $(ls -d */ |awk -F"/" '{print $1}'); do
|
for i in $(ls -d */ |awk -F"/" '{print $1}'); do
|
||||||
bash -c "cat /etc/letsencrypt/live/$i/fullchain.pem /etc/letsencrypt/live/$i/privkey.pem > $path/$i.pem"
|
bash -c "cat /etc/letsencrypt/live/$i/fullchain.pem /etc/letsencrypt/live/$i/privkey.pem > $path/$i.pem"
|
||||||
done
|
done
|
||||||
|
|
||||||
bash -c $command
|
|
||||||
# Reload HAProxy
|
# Reload HAProxy
|
||||||
sudo systemctl status haproxy
|
sudo systemctl reload haproxy
|
||||||
|
|
Loading…
Reference in New Issue