X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fsigul-install.sh;h=59d0a19432f7b390734d71efde6c37fb6b655181;hb=a86c6e8d376c95aa00b179fce9d207e61c8f72d0;hp=71db7869f64453db88a0ec1076762ac69695e4b3;hpb=645a9eac13aa19e8307a61ad178586f71c339cf3;p=releng%2Fglobal-jjb.git diff --git a/shell/sigul-install.sh b/shell/sigul-install.sh old mode 100644 new mode 100755 index 71db7869..59d0a194 --- a/shell/sigul-install.sh +++ b/shell/sigul-install.sh @@ -11,24 +11,27 @@ echo "---> sigul-install.sh" # Ensure we fail the job if any steps fail. -set -eu -o pipefail +set -e -o pipefail -# Setup sigul RPM repo -echo "[fedora-infra-sigul] +if command -v sigul &>/dev/null; then + echo "Sigul already installed; skipping installation." +else + # Setup sigul RPM repo + echo "[fedora-infra-sigul] name=Fedora builder packages for sigul -baseurl=https://infrastructure.fedoraproject.org/repo/infra/epel\$releasever-infra/\$basearch/ +baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel\$releasever-infra/latest/\$basearch/ enabled=1 gpgcheck=1 gpgkey=https://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS includepkgs=sigul* skip_if_unavailable=True" > fedora-infra-sigul.repo -sudo cp fedora-infra-sigul.repo /etc/yum.repos.d -rm fedora-infra-sigul.repo - -# install sigul -sudo yum install -y -q sigul + sudo cp fedora-infra-sigul.repo /etc/yum.repos.d + rm fedora-infra-sigul.repo + # install sigul + sudo yum install -y -q sigul +fi; # configure /etc/hosts with the sigul bridge hostname # This is needed as build minions can't always get DNS resolution # on the bridge