diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-10-29 17:53:40 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-10-30 10:57:23 +0100 |
commit | 1f0d1d5a0b60ee97b8f7ed39375f1123fbf0d222 (patch) | |
tree | c23e3a63cc5b8ddf84cffb0cd3da3c4056a902f4 | |
parent | 63b3fbf52441cde08a05df2d2237f63be52adfc3 (diff) |
#804 Fix updater php package retrieving
Updater script retrieves php7.1-mapi package instead of php7.2 metapackage.
Otherwise, updating from 1.1.1c to 1.2.0 fails.
This commit changes "apt-cache" search for the "php7.2" specific package
dependency which is available in Ubuntu 18.04.
-rwxr-xr-x | installer/opengnsys_update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 11c64a8e..0f48d04b 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -428,7 +428,7 @@ function installDependencies() eval $UPDATEPKGLIST if [ -f /etc/debian_version ]; then # Basado en paquetes Deb. - PHP7VERSION=$(apt-cache pkgnames php7 2>/dev/null | sort | head -1) + PHP7VERSION="php7.2" PHPFPMSERV="${PHP7VERSION}-fpm" PHP5PKGS=( $(dpkg -l | awk '$2~/^php5/ {print $2}') ) if [ -n "$PHP5PKGS" ]; then |