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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -