0
我尝试使用下面的厨师资源什么是使用厨师资源
bash 'env_var' do
code <<-EOH
echo export APP_ADDR="http://#{node['ipaddress']}:8443" >> /etc/profile
EOH
not_if "grep -q APP_ADDR=http://#{node['ipaddress']}:8443 /etc/profile"
end
我要问,如果有更好的方式做同样的事情,以更新的姿态,更新配置文件的最好方法。