#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
# 定义变量ID="my_id"APIKEY="12345"APIPORT="1234"VHOST="myvps"FULL_FQDN="xxx.xxx.xxx"LISTEN_ADDRESS="xxx.xxx.xxx.xxx"EMAIL="my@emal.com"set service https api key id $ID key $APIKEYset service https certificates certbot domain-name $FULL_FQDNset service https certificates certbot email $EMAILset service https api strict
set service https virtual-host $VHOST listen-address $LISTEN_ADDRESSset service https virtual-host $VHOST listen-port $APIPORTset service https virtual-host $VHOST server-name $FULL_FQDNcommit
save
exit