X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fshell%2Fta-install-build-tools.sh;fp=jjb%2Fshell%2Fta-install-build-tools.sh;h=80500c374400ef040a8e7b5f635477e805432e71;hp=0000000000000000000000000000000000000000;hb=557258996f2edb1c30b01b932ae2f3052de7de20;hpb=b2b26d4b275f686897b9cc88649cd4f68370ea6a diff --git a/jjb/shell/ta-install-build-tools.sh b/jjb/shell/ta-install-build-tools.sh new file mode 100644 index 0000000..80500c3 --- /dev/null +++ b/jjb/shell/ta-install-build-tools.sh @@ -0,0 +1,11 @@ +#!/bin/bash -ex +if apt --version 2>1 >/dev/null; then + if ! createrepo --version 2>1 >/dev/null; then + sudo apt update + sudo apt install -y createrepo libguestfs-tools jq libvirt-daemon-system + fi +else + sudo yum -y install createrepo libguestfs-tools-c jq +fi +sudo systemctl start libvirtd +systemctl status libvirtd