From 1a76afa5dacd57aa0a68ef8ca77b94f8ea87bc92 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Tue, 21 Jan 2020 12:49:35 +0100 Subject: #811 setclientmode: Fixs error when call function getcaller. --- server/bin/setclientmode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/bin/setclientmode b/server/bin/setclientmode index 4a37f9cc..af417c1e 100755 --- a/server/bin/setclientmode +++ b/server/bin/setclientmode @@ -44,7 +44,7 @@ source $OPENGNSYS/lib/ogfunctions.sh [ $# -ne 3 ] && raiseError usage # Comprobar si el usuario es "root" o el del servicio web. WEBUSER=$(ps axho user,comm|awk '!/root/ && /httpd|apache/ {print $1; exit;}') -CALLER=$(getCaller) +CALLER=$(getcaller) [ "$USER" != "root" -a "$USER" != "$WEBUSER" -a "$CALLER" != "ogAdmServerAux" ] && raiseError access "Need to be root (or webserver user)" # El acceso a mysql por las variables pasadas o por el fichero de configuarción. if [ -z "$USUARIO" ] || [ -z "$PASSWORD" ] || [ -z "$CATALOG" ]; then -- cgit v1.2.3-18-g5258