aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src/shell.rs
Commit message (Collapse)AuthorAgeFilesLines
* populate: run shell code with /bin/shtv8 days1-1/+1
| | | | | | populate runs shell code on the deploying machine and on the target with /bin/sh, so neither needs a shell in PATH, as the PATH a CI job runs populate with may lack one.
* populate: populate shell, running shell code on a targettv14 days1-0/+72
populate shell [OPTION]... TARGET SCRIPT runs SCRIPT with /bin/sh on TARGET, reached like populate reaches it, deciding whether it's local when it runs, with local or remote as $1, so SCRIPT can tell. It takes populate's target options but --path, and --tty, giving SCRIPT a terminal on a remote target, and --local-only, failing before connecting unless the target is local. It replaces itself with the command running SCRIPT, so the exit status, the terminal, and signals are SCRIPT's. krops can run nixos-rebuild with it, which needs whether the target is local, unless it decides that during evaluation, which pure evaluation can't. The command line's parsing is shared between populate and populate shell.