summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-02-07 10:35:55 +0100
committerRamón M. Gómez <ramongomez@us.es>2019-02-07 10:35:55 +0100
commitea016a46cd299cf7e9bd5f028f73393e19b5abe7 (patch)
tree08e4f8c890932152cb8ffc58b5d76e25ee963af3 /installer
parent39f06eb4274488222dd4b5fc8aab3069762a0e5e (diff)
#784: Fixing Apache configuration error when multiple instances of PHP-FPM are installed.
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh2
-rwxr-xr-xinstaller/opengnsys_update.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index fd07d843..87b06835 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -1151,7 +1151,7 @@ function installWebConsoleApacheConf()
echoAndLog "${FUNCNAME}(): configuring PHP-FPM"
service=$PHPFPMSERV
$ENABLESERVICE; $STARTSERVICE
- sockfile=$(find /run/php -name "php*.sock" -type s -print 2>/dev/null)
+ sockfile=$(find /run/php -name "php*.sock" -type s -print 2>/dev/null | tail -1)
# Activar módulos de Apache.
$APACHEENABLEMODS
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 09142865..2fcd3be8 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -571,7 +571,7 @@ function apacheConfiguration ()
else
template=$WORKDIR/opengnsys/server/etc/apache.conf.tmpl
fi
- sockfile=$(find /run/php -name "php*.sock" -type s -print 2>/dev/null)
+ sockfile=$(find /run/php -name "php*.sock" -type s -print 2>/dev/null | tail -1)
# Actualizar configuración de Apache a partir de fichero de plantilla.
for config in $APACHECFGDIR/{,sites-available/}opengnsys.conf; do
if [ -e $config ]; then