mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
*Fetch agreement URL from API
This commit is contained in:
parent
48bced28e3
commit
a1d53e0489
1 changed files with 2 additions and 1 deletions
|
@ -41,11 +41,12 @@ fi
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
api='https://acme-v01.api.letsencrypt.org'
|
api='https://acme-v01.api.letsencrypt.org'
|
||||||
agreement='https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf'
|
|
||||||
if [ -z "$email" ]; then
|
if [ -z "$email" ]; then
|
||||||
email=$(get_user_value '$CONTACT')
|
email=$(get_user_value '$CONTACT')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
agreement=$(curl -s -I "$api/terms" |grep Location |cut -f 2 -d \ |tr -d '\r\n')
|
||||||
|
|
||||||
# Generating key
|
# Generating key
|
||||||
key="$USER_DATA/ssl/user.key"
|
key="$USER_DATA/ssl/user.key"
|
||||||
if [ ! -e "$key" ]; then
|
if [ ! -e "$key" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue