Merge branch 'main' of https://ognproject.evlt.uma.es/gitea/opengnsys/ogboot
commit
fe2b505283
|
@ -59,7 +59,7 @@ if [ -n "$LOGLEVEL" ]; then
|
||||||
DATETIME=$(date +"%F %T")
|
DATETIME=$(date +"%F %T")
|
||||||
# Registrar mensajes en fichero de log si la depuración no está desactivada.
|
# Registrar mensajes en fichero de log si la depuración no está desactivada.
|
||||||
[ "${DEBUG,,}" != "no" ] && LOGS="$OGLOGFILE $LOGS"
|
[ "${DEBUG,,}" != "no" ] && LOGS="$OGLOGFILE $LOGS"
|
||||||
logger -s -t "OpenGnsys $LOGLEVEL" "$DATETIME $*" 2>&1 | tee -a $LOGS
|
echo "OpenGnsys $LOGLEVEL" "$DATETIME $*" 2>&1 | tee -a $LOGS
|
||||||
else
|
else
|
||||||
echo "$*" | tee -a $LOGS
|
echo "$*" | tee -a $LOGS
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[ogclient]
|
[ogclient]
|
||||||
comment = OpenGnsys Client
|
comment = OpenGnsys Client
|
||||||
browseable = no
|
browseable = no
|
||||||
writeable = no
|
writeable = yes
|
||||||
locking = no
|
locking = no
|
||||||
path = __OGBOOTDIR__/client
|
path = __OGBOOTDIR__/client
|
||||||
guest ok = no
|
guest ok = no
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
|
|
||||||
# Error si llamada no se realliza desde OpenGnsys Client.
|
# Error si llamada no se realliza desde OpenGnsys Client.
|
||||||
PROG=$(basename $0)
|
PROG=$(basename $0)
|
||||||
CALLER=$(ogGetCaller)
|
#CALLER=$(ogGetCaller)
|
||||||
if ! $(ogCheckStringInGroup "$CALLER" "CrearImagen ConsolaRemota CrearImagenBasica CrearSoftIncremental"); then
|
#if ! $(ogCheckStringInGroup "$CALLER" "CrearImagen ConsolaRemota CrearImagenBasica CrearSoftIncremental"); then
|
||||||
ogRaiseError $OG_ERR_NOTEXEC "$CALLER -> $PROG"
|
# ogRaiseError $OG_ERR_NOTEXEC "$CALLER -> $PROG"
|
||||||
exit $?
|
# exit $?
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Salir si el repositorio está bloquedo (tiene ficheros abiertos).
|
# Salir si el repositorio está bloquedo (tiene ficheros abiertos).
|
||||||
REPOIP=$(ogGetRepoIp)
|
REPOIP=$(ogGetRepoIp)
|
||||||
|
|
|
@ -45,11 +45,11 @@ ogEcho log session "$MSG_INTERFACE_START $0 $*"
|
||||||
# Solo ejecutable por OpenGnsys Client.
|
# Solo ejecutable por OpenGnsys Client.
|
||||||
PATH=$PATH:$(dirname $0)
|
PATH=$PATH:$(dirname $0)
|
||||||
PROG=$(basename $0)
|
PROG=$(basename $0)
|
||||||
CALLER=$(ogGetCaller)
|
#CALLER=$(ogGetCaller)
|
||||||
if [ "$CALLER" != "ogAdmClient" ]; then
|
#if [ "$CALLER" != "ogAdmClient" ]; then
|
||||||
ogRaiseError $OG_ERR_NOTEXEC "$CALLER -> $PROG"
|
# ogRaiseError $OG_ERR_NOTEXEC "$CALLER -> $PROG"
|
||||||
exit $?
|
# exit $?
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Valor por defecto para el repositorio.
|
# Valor por defecto para el repositorio.
|
||||||
REPO=${4:-"REPO"}
|
REPO=${4:-"REPO"}
|
||||||
|
|
Loading…
Reference in New Issue