comparison pilot/setup.sh @ 166:29c7c4c4e891 hotfix/v1.2.1

if missing, create override file with correct version
author smith@nwoca.org
date Wed, 16 Aug 2017 16:12:01 +0100
parents ab4effbe8d43
children 65ad866531d3
comparison
equal deleted inserted replaced
165:37d03f440b4b 166:29c7c4c4e891
89 echo "" >> ./docker-compose.yml 89 echo "" >> ./docker-compose.yml
90 90
91 md5calc ./docker-compose.yml > .docker-compose.md5 91 md5calc ./docker-compose.yml > .docker-compose.md5
92 92
93 echo "created docker-compose.yml" 93 echo "created docker-compose.yml"
94 94
95 else 95 else
96 echo " 96 echo "
97 97
98 Error! docker-compose.yml file has been modified or checksum missing. Can not auto-apply update(s). 98 Error! docker-compose.yml file has been modified or checksum missing. Can not auto-apply update(s).
99 Move customizations to docker-compose.override.yml then delete the docker-compose.yml 99 Move customizations to docker-compose.override.yml then delete the docker-compose.yml
100 " 100 "
101 fi 101 fi
102 102
103 if [ ! -e "docker-compose.override.yml" ]
104 then
105 echo 'version: "3.3"' >> docker-compose.override.yml
106 fi
107
103 if [ "$USAS_APPLICATIONID" == "" ] 108 if [ "$USAS_APPLICATIONID" == "" ]
104 then 109 then
105 read -e -p "Generate USAS and USPS integration config? <Y/n> " answer 110 read -e -p "Generate USAS and USPS integration config? <Y/n> " answer
106 case $answer in 111 case $answer in
107 y | Y | yes | YES ) answer="y";; 112 y | Y | yes | YES ) answer="y";;