我正在通过chef执行一个shell脚本,如下所示
execute 'Run postgres data migration' do
command '/home/ubuntu/build-target/infra-base/psql10_migration.sh'
live_stream true
action :run
only_if { ::File.exist?('/home/ubuntu/build-target/infra-base/psql10_migration.sh') }
end我的厨师日志被定向到一个文件(log_location '/var/log/arkin/chef-run.log' )
现在,我没有从bash脚本psql10_migration.sh获得任何日志。有人能告诉我如何从bash脚本中获取日志吗?
https://stackoverflow.com/questions/51307728
复制相似问题