Skip to content

Commit

Permalink
nixos-modules/microvm/ssh-deploy: fix for pristine deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Mar 29, 2024
1 parent d6faefa commit 782e849
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos-modules/microvm/ssh-deploy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ in
if [[ $(realpath ./current) != $(realpath ./new) ]]; then
echo "Installing MicroVM ${hostName}"
rm -f old
mv current old
if [ -e current ]; then
mv current old
fi
mv new current
echo "Success. Diff:"
Expand Down

0 comments on commit 782e849

Please sign in to comment.