mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-26 01:20:28 +00:00
install sh
This commit is contained in:
parent
c709148143
commit
4ef5255d14
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue