|
@@ -306,10 +306,10 @@ OSInfo() {
|
|
|
if [ -f /etc/os-release ]; then
|
|
|
DIST=$(grep ^NAME= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
|
REV=$(grep ^VERSION= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
|
+ ID=$(grep ^ID= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
|
ID_LIKE=$(grep ^ID_LIKE= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
|
VERSION=$(grep ^VERSION_ID= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
|
for i in $ID_LIKE; do
|
|
|
- #echo -en "$i\n"
|
|
|
case $i in
|
|
|
debian|ubuntu)
|
|
|
debianOS=true
|
|
@@ -1176,15 +1176,9 @@ instalarPHP() {
|
|
|
if [ $VERSION = "7" ];then
|
|
|
result=$(yum -y install http://remi.mirrors.cu.be/enterprise/remi-release-7.rpm 2>&1)
|
|
|
comprobarError $? 303 $result
|
|
|
- elif [ $VERSION = "6" ];then
|
|
|
- result=$(yum -y install http://remi.mirrors.cu.be/enterprise/remi-release-6.rpm 2>&1)
|
|
|
- comprobarError $? 303 $result
|
|
|
elif [ $VERSION = "28" ];then
|
|
|
result=$(yum -y install http://remi.mirrors.cu.be/fedora/remi-release-28.rpm 2>&1)
|
|
|
comprobarError $? 303 $result
|
|
|
- elif [ $VERSION = "27" ];then
|
|
|
- result=$(yum -y install http://remi.mirrors.cu.be/fedora/remi-release-27.rpm 2>&1)
|
|
|
- comprobarError $? 303 $result
|
|
|
else
|
|
|
comprobarError 1 304
|
|
|
fi
|