How can I run bash script file from chef-recipe -
i want implement logic in chef-recipe below. how can achieve this
file=/tmp/productmain.param if [ -f "${file}" ];  if [ -f /tmp/monitor.sh ];      echo "[info] configuration beeing processed"      /tmp/monitor.sh $file  else     error "the monitor script doe not exit     exit 1  fi else   error "input file not exist"   exit 1 fi 
take @ chef documentation, , gives examples on how use bash resource: https://docs.chef.io/resource_bash.html
Comments
Post a Comment