diff --git a/build/deb_rpm/v2-jf/build-scripts/deb-install.sh b/build/deb_rpm/v2-jf/build-scripts/deb-install.sh index 6e4651be5..d3e1cd727 100644 --- a/build/deb_rpm/v2-jf/build-scripts/deb-install.sh +++ b/build/deb_rpm/v2-jf/build-scripts/deb-install.sh @@ -1,3 +1,5 @@ +#!/bin/bash + wget -qO - https://releases.jfrog.io/artifactory/api/gpg/key/public | apt-key add -; echo "deb https://releases.jfrog.io/artifactory/jfrog-debs xenial contrib" | sudo tee -a /etc/apt/sources.list; apt update; diff --git a/build/deb_rpm/v2-jf/build-scripts/rpm-install.sh b/build/deb_rpm/v2-jf/build-scripts/rpm-install.sh index 4b42e5864..82e32dab4 100644 --- a/build/deb_rpm/v2-jf/build-scripts/rpm-install.sh +++ b/build/deb_rpm/v2-jf/build-scripts/rpm-install.sh @@ -1,7 +1,11 @@ -echo "[jfrog-cli]" > jfrog-cli.repo; -echo "name=jfrog-cli" >> jfrog-cli.repo; -echo "baseurl=https://releases.jfrog.io/artifactory/jfrog-rpms" >> jfrog-cli.repo; -echo "enabled=1" >> jfrog-cli.repo; -echo "gpgcheck=0" >> jfrog-cli.repo; +#!/bin/bash + +{ + echo "[jfrog-cli]" + echo "name=jfrog-cli" + echo "baseurl=https://releases.jfrog.io/artifactory/jfrog-rpms" + echo "enabled=1" + echo "gpgcheck=0" +} >> jfrog-cli.repo sudo mv jfrog-cli.repo /etc/yum.repos.d/; yum install -y jfrog-cli-v2-jf; diff --git a/build/deb_rpm/v2/build-scripts/deb-install.sh b/build/deb_rpm/v2/build-scripts/deb-install.sh index 3540fc6ca..20253e4ff 100644 --- a/build/deb_rpm/v2/build-scripts/deb-install.sh +++ b/build/deb_rpm/v2/build-scripts/deb-install.sh @@ -1,3 +1,5 @@ +#!/bin/bash + wget -qO - https://releases.jfrog.io/artifactory/api/gpg/key/public | apt-key add -; echo "deb https://releases.jfrog.io/artifactory/jfrog-debs xenial contrib" | sudo tee -a /etc/apt/sources.list; apt update; diff --git a/build/deb_rpm/v2/build-scripts/rpm-install.sh b/build/deb_rpm/v2/build-scripts/rpm-install.sh index 98849e879..61c8aba13 100644 --- a/build/deb_rpm/v2/build-scripts/rpm-install.sh +++ b/build/deb_rpm/v2/build-scripts/rpm-install.sh @@ -1,8 +1,12 @@ -echo "[jfrog-cli]" > jfrog-cli.repo; -echo "name=jfrog-cli" >> jfrog-cli.repo; -echo "baseurl=https://releases.jfrog.io/artifactory/jfrog-rpms" >> jfrog-cli.repo; -echo "enabled=1" >> jfrog-cli.repo; -echo "gpgcheck=0" >> jfrog-cli.repo; +#!/bin/bash + +{ + echo "[jfrog-cli]" + echo "name=jfrog-cli" + echo "baseurl=https://releases.jfrog.io/artifactory/jfrog-rpms" + echo "enabled=1" + echo "gpgcheck=0" +} >> jfrog-cli.repo sudo mv jfrog-cli.repo /etc/yum.repos.d/; yum install -y jfrog-cli-v2; jf intro;