Commit c098234a authored by Denis Zalevskiy's avatar Denis Zalevskiy

[unit] pass unit name to the unit script. Contributes to MER#980

Signed-off-by: Denis Zalevskiy's avatarDenis Zalevskiy <denis.zalevskiy@jolla.com>
parent 422ffea6
......@@ -35,6 +35,8 @@ QVariantMap options_info
, {"required", true}, {"has_param", true}})}
, {"home-dir", map({{"short", "H"}, {"long", "home-dir"}
, {"required", true}, {"has_param", true}})}
, {"name", map({{"short", "n"}, {"long", "name"}
, {"required", true}, {"has_param", true}})}
, {"action", map({{"short", "a"}, {"long", "action"}
, {"required", true}, {"has_param", true}})}};
......
......@@ -635,6 +635,7 @@ struct Unit
error::raise({{"msg", "Should be executable"}, {"script", script}});
}
QStringList args = { "--action", action,
"--name", m_unit,
"--dir", QDir(m_data).absolutePath(),
"--bin-dir", QDir(m_blobs).absolutePath(),
"--home-dir", m_home };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment