summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-10-29 17:53:40 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-30 10:57:23 +0100
commit1f0d1d5a0b60ee97b8f7ed39375f1123fbf0d222 (patch)
treec23e3a63cc5b8ddf84cffb0cd3da3c4056a902f4
parent63b3fbf52441cde08a05df2d2237f63be52adfc3 (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-xinstaller/opengnsys_update.sh2
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