mirror of
https://cgit.krebsco.de/krops
synced 2024-11-23 03:29:48 +01:00
add target.extraOptions
This commit is contained in:
parent
9c16ab1ce1
commit
2cafddd78d
3 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,7 @@ let {
|
|||
port = default "22" /* "ssh"? */ (elemAt' parse 5);
|
||||
path = default "/var/src" /* no default? */ (elemAt' parse 6);
|
||||
sudo = false;
|
||||
extraOptions = [];
|
||||
} else s;
|
||||
|
||||
shell = let
|
||||
|
|
|
@ -23,6 +23,7 @@ in
|
|||
(lib.optionals (target.user != "") ["-l" target.user])
|
||||
"-p" target.port
|
||||
"-t"
|
||||
target.extraOptions
|
||||
target.host
|
||||
(if target.sudo then "sudo ${command}" else command)])}
|
||||
'';
|
||||
|
|
|
@ -194,6 +194,7 @@ let
|
|||
"-o" "ControlPersist=no"
|
||||
"-p" target.port
|
||||
"-T"
|
||||
target.extraOptions
|
||||
]);
|
||||
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue