From adc4c23e0b4e71f028545494fb8c0677022dacca Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Tue, 12 Nov 2024 08:31:21 -0300 Subject: [PATCH] infra/image/build.sh: Use consistent options for hostname This patch makes the CLI argument for setting the image hostname consistent with 'start.sh', settling on '-n HOSTNAME' for both scripts. --- infra/image/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/image/build.sh b/infra/image/build.sh index 8a2491c881..3b38341177 100755 --- a/infra/image/build.sh +++ b/infra/image/build.sh @@ -15,7 +15,7 @@ valid_distro() { usage() { local prog="${0##*/}" cat << EOF -usage: ${prog} [-h] [-p] [-c HOSTNAME] [-s] distro +usage: ${prog} [-h] [-p] [-n HOSTNAME] [-s] distro ${prog} build a container image to test ansible-freeipa. EOF } @@ -29,7 +29,7 @@ positional arguments: optional arguments: - -c HOSTNAME Container hostname + -n HOSTNAME Container hostname -p Give extended privileges to the container -s Deploy IPA server EOF @@ -43,7 +43,7 @@ quayname="quay.io/ansible-freeipa/upstream-tests" deploy_server="N" privileged="" -while getopts ":hc:ps" option +while getopts ":hn:ps" option do case "${option}" in h) help && exit 0 ;;