防止某些内联脚本的打包器打印输出?
Prevent packer printing output for certain inline scripts?
我是运行一堆加壳脚本,但其中一些会为日志生成过多的输出,这真的很烦人。有什么办法可以更改我的 json 文件,以便我可以在加壳器中禁用这些 shell 脚本之一的输出?
我希望静音的打包程序 shell 脚本调用的一个示例:
{
"type": "shell",
"scripts": [
"scripts/yum_install_and_update"
"scripts/do_magic"
]
}
Packer 本身不支持此功能,但如果您可以修改脚本,则可以使用它们 internally suppress the output。
我是运行一堆加壳脚本,但其中一些会为日志生成过多的输出,这真的很烦人。有什么办法可以更改我的 json 文件,以便我可以在加壳器中禁用这些 shell 脚本之一的输出?
我希望静音的打包程序 shell 脚本调用的一个示例:
{
"type": "shell",
"scripts": [
"scripts/yum_install_and_update"
"scripts/do_magic"
]
}
Packer 本身不支持此功能,但如果您可以修改脚本,则可以使用它们 internally suppress the output。