Merge pull request #8 from samply/fix/someFixes

Some small fixes (see description)
This commit is contained in:
patrickskowronekdkfz 2022-05-13 08:01:50 +02:00 committed by GitHub
commit 14b3f2d61b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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!"