我创建了一个超级简单的脚本,可以在启动时为我加载一些配置。然而,这在控制台中看起来非常“不清楚”。
我如何使用 vagrant 的日志记录功能(就像最后的大象一样)并隐藏我的 curl -O 输出?
set_server_config.sh
cd /etc/nginx/sites-available
rm site.dev.conf -y
curl -O https://gist.githubusercontent.com/.../raw/site.dev.conf
cd /var/www/site/system/includes/
curl -O https://gist.githubusercontent.com/.../raw/config.root.php
curl -O https://gist.githubusercontent.com/.../raw/config.db.php
记录示例:
==> default: Info: "... some text ..."