add helm.sh

This commit is contained in:
ByeonJungHun
2023-09-04 10:54:44 +09:00
parent 5812e10973
commit fafede7951
2 changed files with 28 additions and 1 deletions

27
helm.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
PACKAGE_NAME="wget-*"
HELM_PATH="/usr/local/bin/helm"
function start() {
if rpm -q $PACKAGE_NAME; then
if [ -f "$HELM_PATH" ]; then
echo "helm installed!"
else
wget https://get.helm.sh/helm-v3.11.3-linux-amd64.tar.gz
tar -vxf helm-v3.11.3-linux-amd64.tar.gz
cd ./linux-amd64
cp helm /usr/local/bin/helm
cd ..
rm -rf ./linux-amd64
rm -rf ./helm-v3.11.3-linux-amd64.tar.gz
fi
else
echo "not install wget, instaall start wget"
yum install -y wget
start
fi
return 1
}
start

2
rel.sh
View File

@@ -1,7 +1,7 @@
#!/bin/bash
# 이미지 리스트
images_list="/Users/byeonjunghun/Documents/script/imageslist"
images_list="/Users/byeonjunghun/Documents/git/script/imageslist"
# repo
nexus="10.10.31.243:5000"