diff options
Diffstat (limited to 'server/bin/setclientmode')
-rwxr-xr-x | server/bin/setclientmode | 2 |
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 |