autodist-cgi: move icecream builds outside the repositories loop
This commit is contained in:
parent
455ca50f06
commit
5170d2815a
37
autodist-cgi
37
autodist-cgi
@ -61,6 +61,24 @@ if [ "$SHOWLOG" -a "$HOST" != "$AS_HOST" ]; then
|
|||||||
else
|
else
|
||||||
|
|
||||||
for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
|
for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
|
||||||
|
if [ "$SHOWLOG" = "monitor" ]; then
|
||||||
|
echo "<h2>Build hosts monitor</h2>"
|
||||||
|
icecream-monitor localhost listcs | \
|
||||||
|
while read line; do
|
||||||
|
[ "${line:0:8}" = "200 done" ] && printon=
|
||||||
|
if [ "$printon" ]; then
|
||||||
|
set -- $line
|
||||||
|
case $2 in
|
||||||
|
\(*) echo "<b>$line</b><br>" ;;
|
||||||
|
*) echo "$line<br>" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
[ "${line:0:6}" = "listcs" ] && printon=1
|
||||||
|
done
|
||||||
|
echo "<br>"
|
||||||
|
RELOADTIME=15000
|
||||||
|
break
|
||||||
|
fi
|
||||||
for r in ${AUTOPORT_REPOSITORIES[$i]}; do
|
for r in ${AUTOPORT_REPOSITORIES[$i]}; do
|
||||||
[ "${AUTOPORT_ARCH[$i]}" ] || continue
|
[ "${AUTOPORT_ARCH[$i]}" ] || continue
|
||||||
[ "${AUTOPORT_DISABLE[$i]}" -a "${AUTOPORT_DISABLE[$i]}" != "0" ] && continue
|
[ "${AUTOPORT_DISABLE[$i]}" -a "${AUTOPORT_DISABLE[$i]}" != "0" ] && continue
|
||||||
@ -82,24 +100,7 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
|
|||||||
else
|
else
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [ "$SHOWLOG" = "monitor" ]; then
|
if [ "$SHOWLOG" ]; then
|
||||||
echo "<h2>Build hosts monitor</h2>"
|
|
||||||
icecream-monitor localhost listcs | \
|
|
||||||
while read line; do
|
|
||||||
[ "${line:0:8}" = "200 done" ] && printon=
|
|
||||||
if [ "$printon" ]; then
|
|
||||||
set -- $line
|
|
||||||
case $2 in
|
|
||||||
\(*) echo "<b>$line</b><br>" ;;
|
|
||||||
*) echo "$line<br>" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
[ "${line:0:6}" = "listcs" ] && printon=1
|
|
||||||
done
|
|
||||||
echo "<br>"
|
|
||||||
RELOADTIME=15000
|
|
||||||
break
|
|
||||||
elif [ "$SHOWLOG" ]; then
|
|
||||||
if [ "$HOST" = "$AS_HOST" -a "$NUM" = "$i" ]; then
|
if [ "$HOST" = "$AS_HOST" -a "$NUM" = "$i" ]; then
|
||||||
echo "<h2>$SHOWLOG log in $r(${AUTOPORT_ARCH[$i]}):</h2>"
|
echo "<h2>$SHOWLOG log in $r(${AUTOPORT_ARCH[$i]}):</h2>"
|
||||||
cat << _EOF
|
cat << _EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user