summaryrefslogtreecommitdiffstats
path: root/server/bin/setclientmode
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2020-01-21 12:49:35 +0100
committerIrina Gómez <irinagomez@us.es>2020-01-21 12:49:35 +0100
commit1a76afa5dacd57aa0a68ef8ca77b94f8ea87bc92 (patch)
tree44593e514a4d1996121c1e070ae47a3391589cc0 /server/bin/setclientmode
parentd3cea205c2e6e272ea11e1989791b949c27106de (diff)
#811 setclientmode: Fixs error when call function getcaller.
Diffstat (limited to 'server/bin/setclientmode')
-rwxr-xr-xserver/bin/setclientmode2
1 files changed, 1 insertions, 1 deletions
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