add NO_REBOOT variable

Useful when nixos-infect is used within programs that manage the
machine's state, like nixops.
This commit is contained in:
Lorenzo Manacorda 2019-04-20 16:47:58 +02:00 committed by Eric Litak
parent 2d3b1dffa9
commit a009827712

View file

@ -258,4 +258,4 @@ makeConf
makeSwap # smallest (512MB) droplet needs extra memory!
infect
removeSwap
reboot
[[ -z "$NO_REBOOT" ]] && reboot