diff --git a/scripts/chef_bootstrap.sh b/scripts/chef_bootstrap.sh index ae51650..17ba6a0 100755 --- a/scripts/chef_bootstrap.sh +++ b/scripts/chef_bootstrap.sh @@ -11,18 +11,35 @@ OUTPUTS="/var/log/chef" bootstrap() { [ -x /bin/wget ] || yum install -y wget - [ ! -d /opt/cinc ] && \ + if [ ! -d /opt/cinc ]; then + mkdir -p /etc/chef $CHEFDIR $REPODIR $OUTPUTS wget -qO- 'https://omnitruck.cinc.sh/install.sh' | bash - mkdir -p /etc/chef $CHEFDIR $REPODIR $OUTPUTS + fi ln -sf /etc/chef /etc/cinc cat > $CHEF_PROD_CONFIG <