diff --git a/lib/cli/nodeutility.cpp b/lib/cli/nodeutility.cpp index 523532a2401..7c886e74c68 100644 --- a/lib/cli/nodeutility.cpp +++ b/lib/cli/nodeutility.cpp @@ -375,4 +375,13 @@ void NodeUtility::UpdateConstant(const String& name, const String& value) ifp.close(); ofp.Commit(); + + std::ofstream vars; + vars.exceptions(vars.eofbit | vars.failbit | vars.badbit); + vars.open(Configuration::VarsPath.CStr(), vars.out | vars.binary | vars.ate); + + NetString::WriteStringToStream(vars, JsonEncode(new Dictionary({ + { "name", name }, + { "value", value } + }))); }