add helm.sh
This commit is contained in:
27
helm.sh
Normal file
27
helm.sh
Normal 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
|
||||
Reference in New Issue
Block a user