install sh

This commit is contained in:
qiaofeng1227 2023-07-29 11:37:51 +08:00
parent c709148143
commit 4ef5255d14

View file

@ -100,13 +100,14 @@ if [ "$os_type" == 'Rocky Linux' ] ;then
fi fi
if [ "$os_type" == 'Fedora' ];then if [ "$os_type" == 'Fedora' ];then
sudo yum update -y if [ "$os_version" =~ ^[^37] ]; then
sudo yum install git curl wget yum-utils jq bc unzip -y echo "This app only supported on Fedora 37"
exit 1
fi
fi fi
if [ "$os_type" == 'Redhat' ];then if [ "$os_type" == 'Redhat' ];then
if [ "$os_version" =~ ^[^8] ] and [ "$os_version" =~ ^[^7]] ; then if [ "$os_version" =~ ^[^8] ] and [ "$os_version" =~ ^[^7] ] ; then
echo "This app only supported on Redhat 7,8" echo "This app only supported on Redhat 7,8"
exit 1 exit 1
fi fi
@ -120,9 +121,10 @@ if [ "$os_type" == 'Ubuntu' ];then
fi fi
if [ "$os_type" == 'Debian' ];then if [ "$os_type" == 'Debian' ];then
sudo yum update -y if [ "$os_version" =~ ^[^10] ] ; then
sudo yum install git curl wget yum-utils jq bc unzip -y echo "This app only supported on Redhat 7,8"
exit 1
fi
fi fi
# Check port used # Check port used
@ -513,7 +515,7 @@ else
fi fi
echo "---------------------------------- Install success! you can install a app by websoft9's appstore -------------------------------------------------------" echo "---------------------------------- Install success! When installation completed, you can access it by: http://Internet IP:9000 and using Linux user for login to install a app by websoft9's appstore. -------------------------------------------------------"
} }
CheckEnvironment CheckEnvironment