From 3d5b576cb47133841a4880c6648210363a431851 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Mon, 21 Jul 2008 23:43:06 +0000 Subject: [PATCH] For every directory in the /var/www/html/boot directory assume that it is a 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plc.d/bootmanager b/plc.d/bootmanager index 73c4cea..bdc05bc 100755 --- a/plc.d/bootmanager +++ b/plc.d/bootmanager @@ -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" -- 2.47.0