mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -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'
|
||||
agreement='https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf'
|
||||
if [ -z "$email" ]; then
|
||||
email=$(get_user_value '$CONTACT')
|
||||
fi
|
||||
|
||||
agreement=$(curl -s -I "$api/terms" |grep Location |cut -f 2 -d \ |tr -d '\r\n')
|
||||
|
||||
# Generating key
|
||||
key="$USER_DATA/ssl/user.key"
|
||||
if [ ! -e "$key" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue