2024-10-10

This commit is contained in:
2024-10-10 12:56:56 +08:00
commit 7b347c848a
2648 changed files with 643965 additions and 0 deletions

32
install/install+.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/bash
centos7=`cat /etc/os-release | grep PRETTY_NAME | grep CentOS | grep 7 `
ubuntu14=`cat /etc/os-release | grep PRETTY_NAME | grep Ubuntu | grep 14`
ubuntu16=`cat /etc/os-release | grep PRETTY_NAME | grep Ubuntu | grep 16`
ubuntu18=`cat /etc/os-release | grep PRETTY_NAME | grep Ubuntu | grep 18`
ubuntu20=`cat /etc/os-release | grep PRETTY_NAME | grep Ubuntu | grep 20`
# remind: centos7 doesn't install wget with minimal installation and ubuntu doesn't install curl by default !!!
if [ -n "${centos7}" ];then
echo "CentOS7.* detected" ;
sudo curl https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-centos7.sh | sudo bash ;
elif [ -n "${ubuntu14}" ];then
echo "Ubuntu14.* detected" ;
sudo apt-get -y install curl ;
sudo curl https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-ubuntu14.04.sh | sudo bash ;
elif [ -n "${ubuntu16}" ];then
echo "Ubuntu16.* detected" ;
sudo apt-get -y install curl ;
sudo curl https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-ubuntu16+.sh | sudo bash ;
elif [ -n "${ubuntu18}" ];then
echo "Ubuntu18.* detected" ;
sudo apt-get -y install curl ;
sudo curl https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-ubuntu18.04.sh | sudo bash ;
elif [ -n "${ubuntu20}" ];then
echo "Ubuntu18.* detected" ;
sudo apt-get -y install curl ;
sudo curl https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-ubuntu20.04.sh | sudo bash ;
else
echo "Not support yet system release"
fi