From 67bada088620a42b65762f231099fb8de27a2af0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 27 Nov 2006 15:32:11 +0000 Subject: [PATCH] * Utility: rebuild the NixOS configuration and switch to it. svn path=/nixu/trunk/; revision=7149 --- test/upgrade.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 test/upgrade.sh diff --git a/test/upgrade.sh b/test/upgrade.sh new file mode 100755 index 00000000000..97dc4fa4826 --- /dev/null +++ b/test/upgrade.sh @@ -0,0 +1,4 @@ +#! /bin/sh +set -e +nix-env -p /nix/var/nix/profiles/system -f system-configuration.nix -i -A systemConfiguration +/nix/var/nix/profiles/system/bin/switch-to-configuration