fix new added local repo bug.

Change-Id: I8287c0c6a9bd06a34a01b13ee03429e137977584
This commit is contained in:
xiaodongwang 2014-09-26 23:44:17 -07:00
parent 67d35b643a
commit 0fbc8047fd
1 changed files with 5 additions and 3 deletions

View File

@ -15,11 +15,13 @@ while true; do
let all_nodes_success=1
for node in \\$nodes; do
mkdir -p /var/log/chef/\\$node
#if $getVar("local_repo","") != ""
cat << EOL > /etc/chef/\\$node.json
cat << EOL > /etc/chef/\\$node.json
#if $getVar("local_repo","") != ""
{"local_repo": "$local_repo"}
#else
{}
#end if
EOL
#end if
if [ ! -f "/etc/chef/\\$node.pem" ]; then
cat << EOL > /etc/rsyslog.d/\\$node.conf
\\\\$ModLoad imfile