1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

reinforced: echo "{}" > /etc/iiab/config_vars.yml

This commit is contained in:
A Holt 2017-11-11 20:12:43 -05:00 committed by GitHub
parent 05e09d74ee
commit ef8a2eafd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,12 @@ echo "Placed /etc/ansible/facts.d/local_facts.fact into position."
STAGE=0
if [ ! -f /etc/iiab/iiab.env ]; then
mkdir -p /etc/iiab
echo "{}" > /etc/iiab/config_vars.yml
echo "Ran 'mkdir -p /etc/iiab'"
# ./runtags and Admin Console currently require /etc/iiab/config_vars.yml (in future they may be self-sufficient?)
if [ ! -f /etc/iiab/config_vars.yml ]; then
echo "{}" > /etc/iiab/config_vars.yml
echo "Created stub /etc/iiab/config_vars.yml"
fi
else
if [[ `grep STAGE= /etc/iiab/iiab.env` ]]; then
source /etc/iiab/iiab.env