Changeset 1415 in genappalpha


Ignore:
Timestamp:
Feb 13, 2018, 9:55:05 AM (4 years ago)
Author:
ehb
Message:

centos 7.4 + www directory fix if exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sbin/install.pl

    r1411 r1415  
    205205
    206206if ( $os eq 'centos' ) {
    207     die "only Centos 6.7, 6.8, 6.9, 7.2 and 7.3 currently supported and this appears to be version $os_release\n$sorry" if $os_release !~ /^6\.(7|8|9)$/ && $os_release !~ /^7\.(2|3)/;
     207    die "only Centos 6.7, 6.8, 6.9, 7.2, 7.3 and 7.4 currently supported and this appears to be version $os_release\n$sorry" if $os_release !~ /^6\.(7|8|9)$/ && $os_release !~ /^7\.(2|3|4)/;
    208208}
    209209
     
    393393" );
    394394
     395    runcmdsb( "scl enable rh-php56 'pear upgrade --force --alldeps http://pear.php.net/get/PEAR-1.10.5'" );
    395396    runcmdsb( "scl enable rh-php56 'pear install --alldeps Mail Mail_Mime Net_SMTP'" );
    396397
     
    420421            my $ext ;
    421422            while ( -e $bdir ) {
    422                 $ext++;
    423                 $bdir = "/var/www.previous-$ext";
     423               $ext++;
     424               $bdir = "/var/www.previous-$ext";
    424425            }
    425426            $warnings .= "/var/www is backed up in $bdir";
     
    505506
    506507# ------ centos 7.2 -------
    507 if ( $os eq 'centos' && $os_release =~ /^7\.(2|3)/ ) {
     508if ( $os eq 'centos' && $os_release =~ /^7\.(2|3|4)/ ) {
    508509
    509510    # install required modules
     
    542543" );
    543544
     545    runcmdsb( "scl enable rh-php56 'pear upgrade --force --alldeps http://pear.php.net/get/PEAR-1.10.5'" );
    544546    runcmdsb( "scl enable rh-php56 'pear install --alldeps Mail Mail_Mime Net_SMTP'" );
    545547
     
    569571            my $ext ;
    570572            while ( -e $bdir ) {
    571                 $ext++;
    572                 $bdir = "/var/www.previous-$ext";
     573               $ext++;
     574               $bdir = "/var/www.previous-$ext";
    573575            }
    574576            $warnings .= "/var/www is backed up in $bdir";
     
    741743" );
    742744
     745    runcmdsb( "scl enable rh-php56 'pear upgrade --force --alldeps http://pear.php.net/get/PEAR-1.10.5'" );
    743746    runcmdsb( "scl enable rh-php56 'pear install --alldeps Mail Mail_Mime Net_SMTP'" );
     747
    744748    `sudo killall mongod 2> /dev/null`;
    745749    runcmdsb( "service mongod start" );
     
    768772            my $ext ;
    769773            while ( -e $bdir ) {
    770                 $ext++;
    771                 $bdir = "/var/www.previous-$ext";
     774               $ext++;
     775               $bdir = "/var/www.previous-$ext";
    772776            }
    773777            $warnings .= "/var/www is backed up in $bdir";
     
    777781        }
    778782    }
    779 
     783     
    780784    runcmdsb( "ln -sf $rhsclhttpd/var/www /var/www" );
    781785
Note: See TracChangeset for help on using the changeset viewer.