Merge pull request #8 from samply/fix/someFixes
Some small fixes (see description)
This commit is contained in:
		@@ -46,7 +46,7 @@ source /etc/bridgehead/site.conf
 | 
			
		||||
# TODO: Check all required variables here in a generic loop
 | 
			
		||||
 | 
			
		||||
if [ -z "$SITE_NAME" ]; then
 | 
			
		||||
  log ERROR "Please set site_name."
 | 
			
		||||
  log ERROR "Please set SITE_NAME."
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
@@ -66,7 +66,7 @@ if [ ! -d "certs" ]; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
log INFO "Success - all prerequisites are met!"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user