35 lines
863 B
Bash
Executable File
35 lines
863 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "xxx$root" = "xxx" ];
|
|
then
|
|
# The -t is required on OS X. It provides a template file path for
|
|
# the kernel to use.
|
|
root="$(mktemp -d -t leitXXXX)"
|
|
echo "Root integration tests directory: $root"
|
|
fi
|
|
store_flags="--config-dir $root/conf --work-dir $root/work"
|
|
store_flags="$store_flags --logs-dir $root/logs"
|
|
export root store_flags
|
|
|
|
certbot_test () {
|
|
certbot_test_no_force_renew \
|
|
--renew-by-default \
|
|
"$@"
|
|
}
|
|
|
|
certbot_test_no_force_renew () {
|
|
certbot \
|
|
--server "${SERVER:-http://localhost:4000/directory}" \
|
|
--no-verify-ssl \
|
|
--tls-sni-01-port 5001 \
|
|
--http-01-port 8000 \
|
|
--manual-test-mode \
|
|
$store_flags \
|
|
--non-interactive \
|
|
--no-redirect \
|
|
--agree-tos \
|
|
--register-unsafely-without-email \
|
|
--debug \
|
|
"$@"
|
|
}
|