summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2018-03-13 13:53:58 +0000
committerramon <ramongomez@us.es>2018-03-13 13:53:58 +0000
commit5e4fb7efbfa89bd476a4cdad750ccd41dfefd4fe (patch)
treebe40a9957bd71a331ff0e361f995328829b88e41
parent155568642a36a47d6943048a9e5c6b5b365c2fe1 (diff)
#804: Revisar dependencias de PHP 7 e instalar paquetes de OGAgent de la versión 1.1.0 (medida temporal).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5655 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xinstaller/opengnsys_installer.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 4e1061f0..2bbfff62 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -167,7 +167,7 @@ OSVERSION="${OSVERSION%%.*}"
# Configuración según la distribución GNU/Linux (usar minúsculas).
case "$OSDISTRIB" in
ubuntu|debian|linuxmint)
- DEPENDENCIES=( subversion apache2 php php-ldap libapache2-mod-php mysql-server php-mysql isc-dhcp-server bittorrent tftp-hpa tftpd-hpa xinetd build-essential g++-multilib libmysqlclient15-dev wget curl doxygen graphviz bittornado ctorrent samba rsync unzip netpipes debootstrap schroot squashfs-tools btrfs-tools procps arp-scan realpath php-curl gettext moreutils jq wakeonlan )
+ DEPENDENCIES=( subversion apache2 php php-ldap libapache2-mod-php mysql-server php-mysql isc-dhcp-server bittorrent tftp-hpa tftpd-hpa xinetd build-essential g++-multilib libmysqlclient-dev wget curl doxygen graphviz bittornado ctorrent samba rsync unzip netpipes debootstrap schroot squashfs-tools btrfs-tools procps arp-scan realpath php-curl gettext moreutils jq wakeonlan )
UPDATEPKGLIST="apt-get update"
INSTALLPKG="apt-get -y install --force-yes"
CHECKPKG="dpkg -s \$package 2>/dev/null | grep Status | grep -qw install"
@@ -299,11 +299,11 @@ case "$OSDISTRIB" in
eval $INSTALLPKG software-properties-common
add-apt-repository -y ppa:ondrej/php
eval $UPDATEPKGLIST
+ PHP7VERSION=$(apt-cache pkgnames php7 | sort | head -1)
+ DEPENDENCIES=( ${DEPENDENCIES[@]//php/$PHP7VERSION} )
fi
- PHP7VERSION=$(apt-cache pkgnames php7 | sort | head -1)
- DEPENDENCIES=( ${DEPENDENCIES[@]//php/$PHP7VERSION} )
- # Dependencias correctas para libmysqlclient.
- [ -z "$(apt-cache pkgnames libmysqlclient15)" ] && DEPENDENCIES=( ${DEPENDENCIES[@]//libmysqlclient15/libmysqlclient} )
+ # Adaptar dependencias para libmysqlclient.
+ [ -z "$(apt-cache pkgnames libmysqlclient-dev)" ] && [ -n "$(apt-cache pkgnames libmysqlclient15)" ] && DEPENDENCIES=( ${DEPENDENCIES[@]//libmysqlclient-dev/libmysqlclient15} )
;;
centos) # Postconfiguación personalizada para CentOS.
# Configuración para PHP 7.
@@ -1098,6 +1098,7 @@ function installWebFiles()
# Copiar ficheros en la zona de descargas de OpenGnsys Web Console.
function installDownloadableFiles()
{
+ INSTVERSION=1.1.0 ### Temporal.
local FILENAME=ogagentpkgs-$INSTVERSION.tar.gz
local TARGETFILE=$WORKDIR/$FILENAME