new sslproxy xai cli commands cerbot info and renewal
This commit is contained in:
31
dockerfiles/services/sslproxy/cli/certbot/certbot
Executable file
31
dockerfiles/services/sslproxy/cli/certbot/certbot
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
#set -x
|
||||
|
||||
LETSENCRYPT_IMAGE=dkregistry.xai-corp.net:5000/xaicorp/acme-certbot
|
||||
LETSENCRYPT_MOUNT=/opt/shared/letsencrypt-2-staging
|
||||
|
||||
export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
|
||||
export LETSENCRYPT_MOUNT
|
||||
export LETSENCRYPT_IMAGE
|
||||
|
||||
run() {
|
||||
docker-compose \
|
||||
-f docker-compose.tools.yml \
|
||||
run test $@
|
||||
}
|
||||
|
||||
run_help() {
|
||||
docker-compose \
|
||||
-f docker-compose.tools.yml \
|
||||
run test --help $@
|
||||
}
|
||||
|
||||
|
||||
while getopts h name
|
||||
do
|
||||
case $name in
|
||||
h) run_help $@;;
|
||||
*) run $@;;
|
||||
esac
|
||||
done
|
||||
Reference in New Issue
Block a user