packages: use exit 2
This commit is contained in:
parent
6c5830b591
commit
d5a5fdb800
|
@ -118,7 +118,7 @@ lib.attrsets.mapAttrs
|
|||
if [[ $(ssh ${target} cat /etc/hostname) != ${name} ]]; then
|
||||
echo "hostname of the target machine does not match, please manually investigate!"
|
||||
echo " $(ssh ${target} cat /etc/hostname) != ${name}"
|
||||
exit 1
|
||||
exit 2
|
||||
fi
|
||||
nix copy --no-check-sigs --to ssh-ng://${target} ${inputPaths}
|
||||
nix copy --no-check-sigs --derivation --to ssh-ng://${target} ${toplevelDrvPath}
|
||||
|
@ -222,7 +222,7 @@ lib.attrsets.mapAttrs
|
|||
if [[ $(cat /etc/hostname) != ${name} ]]; then
|
||||
echo "hostname of the target machine does not match, please manually investigate!"
|
||||
echo " $(ssh ${target} cat /etc/hostname) != ${name}"
|
||||
exit 1
|
||||
exit 2
|
||||
fi
|
||||
${discardStringCtx hostConfig.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath}
|
||||
${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
|
||||
|
@ -239,7 +239,7 @@ lib.attrsets.mapAttrs
|
|||
|
||||
${lib.optionalString (!builtins.elem (hostConfig.c3d2.deployment.server or null) [ "server9" "server10" ]) ''
|
||||
echo "MicroVM must be configured to proper server" >&2
|
||||
exit 1
|
||||
exit 2
|
||||
''}
|
||||
|
||||
${hostConfig.system.build.copyToServer} ${declaredRunnerDrvPath}
|
||||
|
|
Loading…
Reference in New Issue