eb test push
This commit is contained in:
@@ -24,14 +24,14 @@ container_commands:
|
|||||||
40_configure_cert:
|
40_configure_cert:
|
||||||
command: |
|
command: |
|
||||||
certbot_command="/usr/local/bin/certbot-auto certonly --webroot --webroot-path /var/www/letsencrypt --debug --non-interactive --email ${LETSENCRYPT_EMAIL} --agree-tos --expand --keep-until-expiring"
|
certbot_command="/usr/local/bin/certbot-auto certonly --webroot --webroot-path /var/www/letsencrypt --debug --non-interactive --email ${LETSENCRYPT_EMAIL} --agree-tos --expand --keep-until-expiring"
|
||||||
for domain in $(echo ${LETSENCRYPT_DOMAINS} | sed "s/,/ /g")
|
for domain in $(echo ${LETSENCRYPT_DOMAIN} | sed "s/,/ /g")
|
||||||
do
|
do
|
||||||
certbot_command="$certbot_command --domains $domain"
|
certbot_command="$certbot_command --domains $domain"
|
||||||
done
|
done
|
||||||
eval $certbot_command
|
eval $certbot_command
|
||||||
50_link_cert:
|
50_link_cert:
|
||||||
command: |
|
command: |
|
||||||
domain="$( cut -d ',' -f 1 <<< "${LETSENCRYPT_DOMAINS}" )";
|
domain="$( cut -d ',' -f 1 <<< "${LETSENCRYPT_DOMAIN}" )";
|
||||||
if [ -d /etc/letsencrypt/live ]; then
|
if [ -d /etc/letsencrypt/live ]; then
|
||||||
domain_folder_name="$(ls /etc/letsencrypt/live | sort -n | grep $domain | head -1)";
|
domain_folder_name="$(ls /etc/letsencrypt/live | sort -n | grep $domain | head -1)";
|
||||||
if [ -d /etc/letsencrypt/live/${domain_folder_name} ]; then
|
if [ -d /etc/letsencrypt/live/${domain_folder_name} ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user