source: client/shared/etc/init/default.sh @ f5fa6dd

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).
6OPENGNSYS=${OPENGNSYS:-/opt/opengnsys}
7OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log}
8if ! touch $OGLOGFILE 2>/dev/null; then
9    OGLOGFILE=/var/log/opengnsys.log
10fi
11LOGLEVEL=5
12
13# Matando plymount para inicir browser o shell
14pkill -9 plymouthd
15
16# Arranque de OpenGnsys Client daemon (socket).
17echo "${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
21if [ "$ogstatus" != "offline"  ]; then
22    python3 /opt/opengnsys/ogClient/main.py
23else
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
29fi
30
31# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
32if [ "$ogactiveadmin" == "true" ]; then
33    bash
34fi
35
36
Note: See TracBrowser for help on using the repository browser.