mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 15:20:17 +01:00 
			
		
		
		
	Remove old config checks
This commit is contained in:
		@@ -44,7 +44,7 @@ esac
 | 
				
			|||||||
case "$ACTION" in
 | 
					case "$ACTION" in
 | 
				
			||||||
	start)
 | 
						start)
 | 
				
			||||||
		checkRequirements
 | 
							checkRequirements
 | 
				
			||||||
		fetchVarsFromVault /etc/bridgehead/site.conf /etc/bridgehead/$PROJECT.conf || exit 1
 | 
							fetchVarsFromVault /etc/bridgehead/$PROJECT.conf || exit 1
 | 
				
			||||||
		exec docker-compose -f ./$PROJECT/docker-compose.yml --env-file /etc/bridgehead/$PROJECT.conf up
 | 
							exec docker-compose -f ./$PROJECT/docker-compose.yml --env-file /etc/bridgehead/$PROJECT.conf up
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
	stop)
 | 
						stop)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,22 +40,8 @@ if [ ! -d "/etc/bridgehead/" ]; then
 | 
				
			|||||||
  exit 1
 | 
					  exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#check if site.conf is created
 | 
					 | 
				
			||||||
if [ ! -f /etc/bridgehead/site.conf ]; then
 | 
					 | 
				
			||||||
  log ERROR "Please create your specific site.conf file from the site.dev.conf"
 | 
					 | 
				
			||||||
  exit 1
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#Load site specific variables
 | 
					 | 
				
			||||||
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
 | 
					 | 
				
			||||||
  log ERROR "Please set SITE_NAME."
 | 
					 | 
				
			||||||
  exit 1
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#check if project env is present
 | 
					#check if project env is present
 | 
				
			||||||
if [ -d "/etc/bridgehead/${PROJECT}.conf" ]; then
 | 
					if [ -d "/etc/bridgehead/${PROJECT}.conf" ]; then
 | 
				
			||||||
   log ERROR "Project config not found. Please copy the template from ${PROJECT} and put it under /etc/bridgehead-config/${PROJECT}.conf."
 | 
					   log ERROR "Project config not found. Please copy the template from ${PROJECT} and put it under /etc/bridgehead-config/${PROJECT}.conf."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user