mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-25 02:57:28 +01:00
simplify comparator
This commit is contained in:
parent
ef781a8db2
commit
660897900e
@ -120,19 +120,17 @@ chmod o+x $SCRIPT_DIR/koji-parameters.sh
|
|||||||
koji-deploy-hub.sh $DEBUG
|
koji-deploy-hub.sh $DEBUG
|
||||||
|
|
||||||
# add builders
|
# add builders
|
||||||
PROMPT="Build server FQDN (will default to hub '$KOJI_HUB_FQDN' if left blank) "
|
echo "We will now deploy koji to your build servers"
|
||||||
|
MSG="Press <enter> to use your hub ($KOJI_HUB_FQDN), or the FQDN of your first build server) "
|
||||||
BSNO=1
|
BSNO=1
|
||||||
while true ; do
|
while true ; do
|
||||||
read -p "$PROMPT" KOJI_BUILD_FQDN
|
read -p "Build Server FQDN: " KOJI_BUILD_FQDN
|
||||||
PROMPT="Build server FQDN. (will stop asking if left blank) "
|
MSG="Add another Build Server (will stop asking if left blank) "
|
||||||
if [ -z $KOJI_BUILD_FQDN ] ; then
|
if [ -z $KOJI_BUILD_FQDN ] ; then
|
||||||
if [[ $BSNO -gt 1 ]] ; then
|
if [[ ! $BSNO -gt 1 ]] ; then
|
||||||
break
|
|
||||||
else
|
|
||||||
echo "All-in-one: Hub will now be a build server as well"
|
|
||||||
koji-add-builder.sh $DEBUG
|
koji-add-builder.sh $DEBUG
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
# check if server available on port 22
|
# check if server available on port 22
|
||||||
until (nc -z $KOJI_BUILD_FQDN 22)
|
until (nc -z $KOJI_BUILD_FQDN 22)
|
||||||
|
Loading…
Reference in New Issue
Block a user