Add deployment mechanism for hotfixes to nodes in chosen nodegroups.
[nodeconfig.git] / PlanetLabConf / hotfixes / build.sh
diff --git a/PlanetLabConf/hotfixes/build.sh b/PlanetLabConf/hotfixes/build.sh
new file mode 100755 (executable)
index 0000000..238ef2e
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Look for all directories in the PlanetLabConf/hotfixes directory and 
+# create tar files for hotfixes on nodegroups with the same name.
+
+for dir in `find . -maxdepth 1 -type d  | grep -vE "^.$"` ; do 
+    b=$dir.tar
+    d=$dir
+    tar -C $d --create --file $b .
+done