Commit a74ee5b2 authored by Denis Zalevskiy's avatar Denis Zalevskiy

Do not pass name to the unit script

Temporary change: reverting changes from c098234a because getopt ignores
"required" attr for the option, so name could be only required attrrbute and
some API clients doesn't supply it
Signed-off-by: Denis Zalevskiy's avatarDenis Zalevskiy <denis.zalevskiy@jolla.com>
parent 12ca8e26
......@@ -35,8 +35,6 @@ 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}})}};
......
......@@ -854,7 +854,6 @@ void Unit::execScript(const QString &action)
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