0
votes

I am getting the below error:

No resource or method named 'common_tmp_dir' for 'Chef::Recipe ""init"

my recipe has the following:

install_home        =   "/m1/common"
user            =   "syun"
group           =   "dba"
common_tmp_dir "Creating install home: #{install_home}" do
  path install_home
  user user
  group group
  action :create
end

please help.

1

1 Answers

1
votes

You should use the directory resource to create a new directory.

  directory "Creating install home: #{install_home}" do
    path install_home
    user user
    group group
    action :create
  end