Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[unit] pass unit name to the unit script. Contributes to MER#980
Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Jul 20, 2015
1 parent 422ffea commit c098234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unit.cpp
Expand Up @@ -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}})}};

Expand Down
1 change: 1 addition & 0 deletions src/vault.cpp
Expand Up @@ -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 };
Expand Down

0 comments on commit c098234

Please sign in to comment.