Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 308 Bytes
#!/bin/bash
yum install deltarpm -y
yum install -y redhat-lsb
yum install -y wget
osrelease=$(lsb_release -rs|awk -F'.' '{print $1}')
cat >/etc/yum.repos.d/nginx.repo<<EOF
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$osrelease/\$basearch/
gpgcheck=0
enabled=1
EOF
yum install -y nginx
You can’t perform that action at this time.