Changeset 1580 in genappalpha


Ignore:
Timestamp:
Oct 18, 2018, 3:10:04 AM (4 weeks ago)
Author:
ehb
Message:

fix for RH7 mongo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sbin/install.pl

    r1579 r1580  
    12091209    # install required modules
    12101210
    1211     runcmdsb( "cat <<_EOF > /etc/yum.repos.d/mongodb.repo
    1212 [mongodb]
    1213 name=MongoDB Repository
    1214 baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
    1215 gpgcheck=0
    1216 enabled=1
    1217 _EOF
    1218 # the 3.2 repo didn't seem to work
    1219 cat <<_EOF > /etc/yum.repos.d/mongodb-org-3.6.repo
     1211    runcmdsb( "cat <<_EOF > /etc/yum.repos.d/mongodb-org-3.6.repo
    12201212[mongodb-org-3.6]
    12211213name=MongoDB Repository
    1222 baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/3.6/x86_64/
     1214baseurl=https://repo.mongodb.org/yum/redhat/_releasever/mongodb-org/3.6/x86_64/
    12231215gpgcheck=1
    12241216enabled=1
    12251217gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
    12261218_EOF
     1219sed -i 's/redhat\/_/redhat\/\$/' /etc/yum.repos.d/mongodb-org-3.6.repo
    12271220# semanage port -a -t mongod_port_t -p tcp 27017
    12281221");
Note: See TracChangeset for help on using the changeset viewer.