This commit is contained in:
qiaofeng1227 2023-05-30 17:42:14 +08:00
parent af9782bda6
commit a06c10f87f

View file

@ -130,7 +130,7 @@ fi
InstallTools(){ InstallTools(){
echo "Parpare to install Tools ..." echo "Prepare to install Tools ..."
if [ "$os_type" == 'CentOS' ] || [ "$os_type" == 'CentOS Stream' ] || [ "$os_type" == 'Fedora' ] || [ "$os_type" == 'OracleLinux' ] || [ "$os_type" == 'Redhat' ];then if [ "$os_type" == 'CentOS' ] || [ "$os_type" == 'CentOS Stream' ] || [ "$os_type" == 'Fedora' ] || [ "$os_type" == 'OracleLinux' ] || [ "$os_type" == 'Redhat' ];then
sudo yum update -y 1>/dev/null 2>&1 sudo yum update -y 1>/dev/null 2>&1
@ -151,7 +151,7 @@ fi
InstallDocker(){ InstallDocker(){
echo "Parpare to install Docker ..." echo "Prepare to install Docker ..."
if [ "$os_type" == 'CentOS' ];then if [ "$os_type" == 'CentOS' ];then
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
@ -198,7 +198,7 @@ fi
} }
InstallCockpit(){ InstallCockpit(){
echo "Parpare to install Cockpit ..." echo "Prepare to install Cockpit ..."
if [ "${os_type}" == 'Debian' ]; then if [ "${os_type}" == 'Debian' ]; then
VERSION_CODENAME=$(cat /etc/os-release |grep VERSION_CODENAME|cut -f2 -d"=") VERSION_CODENAME=$(cat /etc/os-release |grep VERSION_CODENAME|cut -f2 -d"=")
@ -342,9 +342,9 @@ function clone_repo() {
fi fi
} }
ParpareStaticFiles(){ PrepareStaticFiles(){
echo "Parpare to install ..." echo "Prepare to install ..."
fasturl=$(fastest_url "${urls[@]}") fasturl=$(fastest_url "${urls[@]}")
echo "fast url is: "$fasturl echo "fast url is: "$fasturl
@ -431,7 +431,7 @@ echo "---------------------------------- Install success! you can install a ap
CheckEnvironment CheckEnvironment
InstallTools InstallTools
InstallDocker InstallDocker
ParpareStaticFiles PrepareStaticFiles
InstallCockpit InstallCockpit
StartAppMng StartAppMng
StartPortainer StartPortainer