Skip to content
Merged
15 changes: 6 additions & 9 deletions static/scripts/install-nim-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,19 +352,17 @@ installBundleForRPMDistro(){
rm -f /etc/yum.repos.d/nginx-plus.repo
fi
printf "[nginx-plus]\nname=nginx-plus repo\nbaseurl=https://pkgs.nginx.com/plus/$os_type/\$releasever/\$basearch/\nsslclientcert=/etc/ssl/nginx/nginx-repo.crt\nsslclientkey=/etc/ssl/nginx/nginx-repo.key\ngpgcheck=0\nenabled=1" >> /etc/yum.repos.d/nginx-plus.repo

yum install -y yum-utils curl epel-release ca-certificates
yum-config-manager --enable nginx-stable
yum-config-manager --enable nginx-plus


yum -y update
check_last_command_status "yum update" $?


yum install -y yum-utils curl epel-release ca-certificates

if [ "${USE_NGINX_PLUS}" == "true" ]; then
echo "Installing nginx plus..."
yum install -y nginx-plus
check_last_command_status "yum install -y nginx-plus" $?
createNginxMgmtFile
create_nginx_mgmt_file
else
echo "Installing nginx..."
yum install -y nginx --repo nginx-stable
Expand All @@ -375,7 +373,7 @@ installBundleForRPMDistro(){
check_last_command_status "systemctl enable nginx.service" $?

if [[ ${SKIP_CLICKHOUSE_INSTALL} == "false" ]]; then
yum-config-manager --add-repo https://packages.clickhouse.com/rpm/clickhouse.repo
dnf config-manager --add-repo https://packages.clickhouse.com/rpm/clickhouse.repo
echo "Installing clickhouse-server and clickhouse-client"

yum install -y "clickhouse-common-static-${CLICKHOUSE_VERSION}"
Expand Down Expand Up @@ -450,7 +448,6 @@ check_nim_dashboard_status(){
sleep 60
if ! curl -k -v https://localhost/ui/ 2>/dev/null| grep -q "NGINX"; then
echo "NGINX Instance Manager failed to start"
cat /var/log/nms/nms.log
exit 1
else
echo -e "${GREEN}NGINX Instance Manager Successfully Started${NC}"
Expand Down