* Script to update all NixOS machines at the same time.
svn path=/configurations/trunk/tud/; revision=8029
Eelco Dolstra committed
Feb 22, 2007 at 21:47 UTC
dee68aebd98a3346d3ff31fc5257764f13fba307
1 file changed
+6
mass-update.sh
new
+6
@@ -0,0 +1,6 @@
1
+#! /bin/sh
2
+
3
+for i in 127.0.0.1 192.168.1.13 192.168.1.14 "127.0.0.1 -p 2222"; do
4
+ echo "=== Updating $i ==="
5
+ ssh -i /root/.ssh/id_mass_update root@$i sh --login -c '"cd /etc/nixos && svn up nixos nixpkgs configurations && nixos-rebuild switch"'
6
+done