diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-10-29 13:18:38 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-10-29 13:18:38 +0100 |
commit | 25bb3d131a96fee5ffb41017de7f4de87a65004c (patch) | |
tree | c6d1f211acf8831e37a9b2a7867731f98477b8b4 /server/bin | |
parent | e020339b6e25001f8ec113a5f61a5f2832ad1945 (diff) |
#816: Define a new shell parameter to know if client is defined as a teaching computer.
Diffstat (limited to 'server/bin')
-rwxr-xr-x | server/bin/setclientmode | 7 |
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), ''), |