mirror of https://github.com/samply/bridgehead.git
Merge pull request #8 from samply/fix/someFixes
Some small fixes (see description)
This commit is contained in:
commit
14b3f2d61b
|
@ -46,7 +46,7 @@ source /etc/bridgehead/site.conf
|
||||||
# TODO: Check all required variables here in a generic loop
|
# TODO: Check all required variables here in a generic loop
|
||||||
|
|
||||||
if [ -z "$SITE_NAME" ]; then
|
if [ -z "$SITE_NAME" ]; then
|
||||||
log ERROR "Please set site_name."
|
log ERROR "Please set SITE_NAME."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ if [ ! -d "certs" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "certs/traefik.crt" ]; then
|
if [ ! -e "certs/traefik.crt" ]; then
|
||||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 365
|
openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 3650 -subj "/CN=$HOST"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log INFO "Success - all prerequisites are met!"
|
log INFO "Success - all prerequisites are met!"
|
||||||
|
|
Loading…
Reference in New Issue