For every directory in the /var/www/html/boot directory assume that it is a
authorStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 21 Jul 2008 23:43:06 +0000 (23:43 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 21 Jul 2008 23:43:06 +0000 (23:43 +0000)
node group, and generate a new bootstrap file for this nodegroup that points
SUPPORT_FILE_DIR= to /boot/$DIRNAME

This should simplify administration of the nodegroup-to-bootstrapfs
administration within PLC.

plc.d/bootmanager

index 73c4cea..bdc05bc 100755 (executable)
@@ -31,6 +31,18 @@ case "$1" in
        pushd /var/www/html/boot
        /usr/share/bootmanager/build.sh
        check
+
+       dirlist="" 
+       for i in `ls`; do 
+               if [ -d $i ]; then 
+                       dirlist="$dirlist $i" 
+               fi
+       done
+       for dir in $dirlist ; do 
+               echo -n " $dir"
+               /usr/share/bootmanager/build.sh $dir
+               check
+       done
        popd
 
        result "$MESSAGE"