From 1444546175a49be38ba505dc9130d2c4e862e50f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 8 Jan 2016 16:02:55 +0100 Subject: Wizard: tweak for EL-5, thanks @drdol --- wizard/index.php | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'wizard/index.php') diff --git a/wizard/index.php b/wizard/index.php index 80a83e5c..e412553f 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -119,9 +119,17 @@ if ($php && $os && $type && !$err) { } else { $yum = 'yum'; printf("
  • Command to install the EPEL repository configuration package:"); - printf("
        $yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm
    ", $ver); - printf("

  • Command to install the Remi repository configuration package:"); - printf("
        $yum install http://rpms.remirepo.net/enterprise/remi-release-%d.rpm
    ", $ver); + if ($ver < 6) { + printf("
        wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm\n", $ver);
    +            printf("    $yum install epel-release-latest-%d.noarch.rpm\n", $ver);
    +            printf("

  • Command to install the Remi repository configuration package:"); + printf("
        wget http://rpms.remirepo.net/enterprise/remi-release-%d.rpm\n", $ver);
    +            printf("    $yum install http://rpms.remirepo.net/enterprise/remi-release-%d.rpm
    ", $ver); + } else { + printf("
        $yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm
    ", $ver); + printf("

  • Command to install the Remi repository configuration package:"); + printf("
        $yum install http://rpms.remirepo.net/enterprise/remi-release-%d.rpm
    ", $ver); + } printf("

  • "); if ($dist == 'RHEL') { printf("
  • On RHEL you (probably) need to enable the optional channel for some dependencies.

  • "); @@ -151,11 +159,15 @@ if ($php && $os && $type && !$err) { } else { printf("
  • PHP version %s packages are available for %s in %s repository

  • ", $php, $os, $phpvers[$php]); - printf("
  • Command to enable the repository:"); - if ($dist == 'Fedora') { - printf("
        dnf config-manager --enable %s
    ", $phpvers[$php]); + if ($ver < 6) { + printf("
  • You have to enable the repository by setting enabled=1 in the [%s] section of /etc/yum.repos.d/remi.repo", $phpvers[$php]); } else { - printf("
        yum-config-manager --enable %s
    ", $phpvers[$php]); + printf("
  • Command to enable the repository:"); + if ($dist == 'Fedora') { + printf("
        dnf config-manager --enable %s
    ", $phpvers[$php]); + } else { + printf("
        yum-config-manager --enable %s
    ", $phpvers[$php]); + } } printf("

  • "); printf("
  • Command to upgrade (the repository only provides PHP):"); -- cgit