summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rwxr-xr-xserver/bin/setclientmode7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/bin/setclientmode b/server/bin/setclientmode
index 4004e932..bdebb063 100755
--- a/server/bin/setclientmode
+++ b/server/bin/setclientmode
@@ -114,15 +114,16 @@ for MAC in $ETHERNET; do
DATOS=$(mysql --defaults-extra-file=$MYCNF -D "$CATALOG" -s -N -e \
"SELECT ' LANG=$LANG',
' ip=', CONCAT_WS(':', ordenadores.ip,
- (SELECT (@serverip:=ipserveradm) FROM entornos LIMIT 1),
- aulas.router, aulas.netmask,
- ordenadores.nombreordenador, ordenadores.netiface, 'none'),
+ (SELECT (@serverip:=ipserveradm) FROM entornos LIMIT 1),
+ aulas.router, aulas.netmask,
+ ordenadores.nombreordenador, ordenadores.netiface, 'none'),
' group=', REPLACE(TRIM(aulas.nombreaula), ' ', '_'),
' ogrepo=', (@repoip:=IFNULL(repositorios.ip, '')),
' oglive=', @serverip,
' oglog=', @serverip,
' ogshare=', @serverip,
' oglivedir=', ordenadores.oglivedir,
+ ' ogprof=', IF(ordenadores.idordenador=aulas.idordprofesor, 'true', 'false'),
IF(perfileshard.descripcion<>'', CONCAT(' hardprofile=', REPLACE(TRIM(perfileshard.descripcion), ' ', '_')), ''),
IF(aulas.ntp<>'', CONCAT(' ogntp=', aulas.ntp), ''),
IF(aulas.dns<>'', CONCAT(' ogdns=', aulas.dns), ''),