From b3f17a47211f21ab290023086c4c852ab16f5cce Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Fri, 23 Jul 2021 17:34:09 +0200 Subject: Go and Ergo Deployment Scripts Signed-off-by: Georg Pfuetzenreuter --- scripts/sh/deploy_go.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/sh/deploy_go.sh (limited to 'scripts/sh/deploy_go.sh') diff --git a/scripts/sh/deploy_go.sh b/scripts/sh/deploy_go.sh new file mode 100755 index 0000000..00377dd --- /dev/null +++ b/scripts/sh/deploy_go.sh @@ -0,0 +1,22 @@ +#!/bin/sh +DISTRIB=$(awk -F= '/^NAME/{print $2}' /etc/os-release) +echo $DISTRIB +if [[ ${DISTRIB} = "openSUSE Leap" ]] +echo +then +read -p "Deploy Go on this system? " -n 1 -r +echo +if [[ $REPLY =~ ^[Yy]$ ]] +then +if [ ! -f /etc/zypp/repos.d/go.repo ] +then +REPO="https://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Leap_15.3/devel:languages:go.repo" +zypper ar --gpgcheck-allow-unsigned-repo $REPO +fi +zypper ref +zypper in -y go +echo OK +fi +else +echo "This is currently only compatible with SUSE Leap nodes." +fi -- cgit v1.2.3