mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-21 17:17: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
|
||||
|
||||
# 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
|
||||
while true ; do
|
||||
read -p "$PROMPT" KOJI_BUILD_FQDN
|
||||
PROMPT="Build server FQDN. (will stop asking if left blank) "
|
||||
read -p "Build Server FQDN: " KOJI_BUILD_FQDN
|
||||
MSG="Add another Build Server (will stop asking if left blank) "
|
||||
if [ -z $KOJI_BUILD_FQDN ] ; then
|
||||
if [[ $BSNO -gt 1 ]] ; then
|
||||
break
|
||||
else
|
||||
echo "All-in-one: Hub will now be a build server as well"
|
||||
if [[ ! $BSNO -gt 1 ]] ; then
|
||||
koji-add-builder.sh $DEBUG
|
||||
break
|
||||
fi
|
||||
break
|
||||
fi
|
||||
# check if server available on port 22
|
||||
until (nc -z $KOJI_BUILD_FQDN 22)
|
||||
|
Loading…
Reference in New Issue
Block a user