mirror of
https://cgit.krebsco.de/krops
synced 2024-11-27 05:29:47 +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);
|
port = default "22" /* "ssh"? */ (elemAt' parse 5);
|
||||||
path = default "/var/src" /* no default? */ (elemAt' parse 6);
|
path = default "/var/src" /* no default? */ (elemAt' parse 6);
|
||||||
sudo = false;
|
sudo = false;
|
||||||
|
extraOptions = [];
|
||||||
} else s;
|
} else s;
|
||||||
|
|
||||||
shell = let
|
shell = let
|
||||||
|
|
|
@ -23,6 +23,7 @@ in
|
||||||
(lib.optionals (target.user != "") ["-l" target.user])
|
(lib.optionals (target.user != "") ["-l" target.user])
|
||||||
"-p" target.port
|
"-p" target.port
|
||||||
"-t"
|
"-t"
|
||||||
|
target.extraOptions
|
||||||
target.host
|
target.host
|
||||||
(if target.sudo then "sudo ${command}" else command)])}
|
(if target.sudo then "sudo ${command}" else command)])}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -194,6 +194,7 @@ let
|
||||||
"-o" "ControlPersist=no"
|
"-o" "ControlPersist=no"
|
||||||
"-p" target.port
|
"-p" target.port
|
||||||
"-T"
|
"-T"
|
||||||
|
target.extraOptions
|
||||||
]);
|
]);
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue