packages: explain when hostname check fails
This commit is contained in:
parent
bdaebb565a
commit
fc0699251b
|
@ -115,7 +115,11 @@ lib.attrsets.mapAttrs
|
|||
exit 2
|
||||
''}
|
||||
|
||||
[[ $(ssh ${target} cat /etc/hostname) == ${name} ]]
|
||||
if [[ $(ssh ${target} cat /etc/hostname) != ${name} ]]; then
|
||||
echo "hostname of the target machine does not match, please manually investiagte!"
|
||||
echo " $(ssh ${target} cat /etc/hostname) != ${name}"
|
||||
exit 1
|
||||
fi
|
||||
nix copy --no-check-sigs --to ssh-ng://${target} ${inputPaths}
|
||||
nix copy --no-check-sigs --derivation --to ssh-ng://${target} ${toplevelDrvPath}
|
||||
|
||||
|
|
Loading…
Reference in New Issue