Last change
on this file since f5fa6dd was
fcb23dc,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago
|
#971 run ogClient (replace ogAdmClient)
This commit changes the bash script that the clients execute at the init
fase to launch the new ogClient instead of the old ogAdmClient. This way
the client works with the new ogAdmServer that do not use custom
protocol SocketHidra? anymore.
|
-
Property mode set to
100755
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Proceso general de arranque de OpenGnsys Client. |
---|
3 | |
---|
4 | |
---|
5 | # Fichero de registro de incidencias (en el servidor; si no, en local). |
---|
6 | OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} |
---|
7 | OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log} |
---|
8 | if ! touch $OGLOGFILE 2>/dev/null; then |
---|
9 | OGLOGFILE=/var/log/opengnsys.log |
---|
10 | fi |
---|
11 | LOGLEVEL=5 |
---|
12 | |
---|
13 | # Matando plymount para inicir browser o shell |
---|
14 | pkill -9 plymouthd |
---|
15 | |
---|
16 | # Arranque de OpenGnsys Client daemon (socket). |
---|
17 | echo "${MSG_LAUNCHCLIENT:-.}" |
---|
18 | # Indicar fichero de teclado de Qt para el idioma especificado (tipo "es.qmap"). |
---|
19 | [ -f /usr/local/etc/${LANG%_*}.qmap ] && export QWS_KEYBOARD="TTY:keymap=/usr/local/etc/${LANG%_*}.qmap" |
---|
20 | |
---|
21 | if [ "$ogstatus" != "offline" ]; then |
---|
22 | python3 /opt/opengnsys/ogClient/main.py |
---|
23 | else |
---|
24 | for FILE in index $OGGROUP $(ogGetIpAddress) |
---|
25 | do |
---|
26 | [ -f $OGCAC/menus/$FILE.html ] && OGMENU="$OGCAC/menus/$FILE.html" |
---|
27 | done |
---|
28 | $OPENGNSYS/bin/browser -qws $OGMENU |
---|
29 | fi |
---|
30 | |
---|
31 | # Si fallo en cliente y modo "admin", cargar shell; si no, salir. |
---|
32 | if [ "$ogactiveadmin" == "true" ]; then |
---|
33 | bash |
---|
34 | fi |
---|
35 | |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.