Remove old config checks

This commit is contained in:
Patrick Skowronek 2022-05-17 13:34:16 +02:00
parent 5cf289f4ee
commit 1f3a29cdab
2 changed files with 1 additions and 15 deletions

View File

@ -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)

View File

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