summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-02 16:34:09 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-02 16:34:09 -0500
commit21ef748c92c10d10d670cd89655ff0b022069b60 (patch)
tree3efd32bf2be77236f7b02d7ccfbc77c6f41752a8 /hscript/meta.cc
parent9f422751407f2d100080a0075f8b2293b5a080bd (diff)
downloadhorizon-21ef748c92c10d10d670cd89655ff0b022069b60.tar.gz
horizon-21ef748c92c10d10d670cd89655ff0b022069b60.tar.bz2
horizon-21ef748c92c10d10d670cd89655ff0b022069b60.tar.xz
horizon-21ef748c92c10d10d670cd89655ff0b022069b60.zip
hscript: More logging and dir creation
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index 55316ac..ad39083 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -130,6 +130,7 @@ bool Hostname::execute(ScriptOptions opts) const {
output_info("installfile:" + std::to_string(this->lineno()),
"hostname: set domain name '" + domain + "'");
if(opts.test(Simulate)) {
+ std::cout << "mkdir -p /target/etc/conf.d" << std::endl;
std::cout << "printf 'dns_domain_lo=\"" << domain
<< "\"\\" << "n' >> /target/etc/conf.d/net" << std::endl;
}