Skip to content

Commit

Permalink
fixed docker for auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
punkrokk committed Sep 20, 2019
1 parent 9d1955d commit 6068262
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions bin/start-syn-services.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#!/usr/bin/env bash
HOME='/opt/syncurity/syn-st2-docker'
CWD=$(pwd)

if [[ ! -f .env ]]; then
cp env.template .env
echo 'Created .env file in root directory. You might wish to change the defaults.'
if [[ "${CWD}" -ne "${HOME}" ]]; then
echo "Please run this script from '${HOME}' directory. "
fi

source .env

if [[ ! -f ".env" ]]; then
cp "${HOME}/env.template" "${HOME}/.env"
echo 'Created .env file in repo root directory. You might wish to change the defaults.'
fi

. "${HOME}/.env"

echo "Checking Environment"
#certs_volume_exists="$(docker volume ls | grep metabase_certs)"
#echo "${certs_volume_exists}"
Expand All @@ -16,8 +24,9 @@ echo "Checking Environment"
#fi

echo "Starting Syncurity ST2 Services"

docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

docker ps

echo "Syncurity ST2 Services Started"
echo "Syncurity ST2 Services Started"

0 comments on commit 6068262

Please sign in to comment.