Subversion Repositories ALCASAR

Rev

Rev 3163 | Rev 3169 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3163 Rev 3168
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#
2
#
3
# $Id: alcasar-letsencrypt.sh 3163 2023-12-19 18:17:16Z rexy $
3
# $Id: alcasar-letsencrypt.sh 3168 2024-01-17 15:28:46Z rexy $
4
#
4
#
5
# alcasar-letsencrypt.sh
5
# alcasar-letsencrypt.sh
6
# by Tom HOUDAYER
6
# by Tom HOUDAYER
7
#
7
#
8
# This script is distributed under the Gnu General Public License (GPL)
8
# This script is distributed under the Gnu General Public License (GPL)
Line 43... Line 43...
43
		emailField=" --accountemail $ACCOUNT_EMAIL"
43
		emailField=" --accountemail $ACCOUNT_EMAIL"
44
		sed -i "s/^email=.*/email=$ACCOUNT_EMAIL/" $CONF_FILE
44
		sed -i "s/^email=.*/email=$ACCOUNT_EMAIL/" $CONF_FILE
45
	else
45
	else
46
		emailField=""
46
		emailField=""
47
	fi
47
	fi
48
 
-
 
-
 
48
	rm -rf $ACMESH_HOME/certs/*
49
	$DEBUG && debugOpt=" --debug" || debugOpt=""
49
	$DEBUG && debugOpt=" --debug" || debugOpt=""
50
	[ ! -z "$DNS_API" ] && dnsApiOpt="$DNS_API" || dnsApiOpt="--yes-I-know-dns-manual-mode-enough-go-ahead-please"
50
	[ ! -z "$DNS_API" ] && dnsApiOpt="$DNS_API" || dnsApiOpt="--yes-I-know-dns-manual-mode-enough-go-ahead-please"
51
	$ACMESH_BIN --config-home $ACMESH_HOME/data \
51
	$ACMESH_BIN --config-home $ACMESH_HOME/data \
52
		$STAGING_SERVER $FORCE $debugOpt \
52
		$STAGING_SERVER $FORCE $debugOpt \
53
		$emailField \
53
		$emailField \