Merge pull request 'stunnel' (#40) from stunnel into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details

Reviewed-on: #40
pull/41/head 0.11.0
Natalia Serrano 2025-05-18 12:28:36 +02:00
commit cf13a6da72
3 changed files with 17 additions and 2 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.11.0] - 2025-05-18
### Changed
- Run stunnel and point the browser to it
## [0.10.0] - 2025-05-14
### Changed

View File

@ -21,9 +21,11 @@ echo "${MSG_LAUNCHCLIENT:-.}"
if [ -f "/usr/share/OGAgent/opengnsys/linux/OGAgentService.py" -a "$ogstatus" != "offline" ]; then
# Ejecutar servicio cliente.
cd /usr/share/OGAgent
export OGAGENTCFG_OGCORE_IP=$ogcore
export OGAGENTCFG_OGCORE_IP=$ogcore
export OGAGENTCFG_OGLOG_IP=$oglog
export OGAGENTCFG_URLMENU_IP=$ogcore
export OGAGENTCFG_URLMENU_SCHEME=http
export OGAGENTCFG_URLMENU_IP=127.0.0.1
export OGAGENTCFG_URLMENU_PORT=81
python3 -m opengnsys.linux.OGAgentService fg
#GROUP_CONFIG=/opt/opengnsys/ogClient/cfg/${group/ /_}.json
#PYMAJMIN=`python3 --version | cut -d" " -f2 | cut -d. -f1,2`

View File

@ -13,6 +13,13 @@ ogIsEfiActive && mount -t efivarfs none /sys/firmware/efi/efivars
# Lanzar servicios complementarios del cliente.
echo "${MSG_OTHERSERVICES:-.}"
# Iniciar stunnel, si es necesario.
if [ -e /etc/stunnel/menu.conf ]; then
sed -i -e "s/__OGCORE_IP__/$ogcore/; s/__OGCORE_PORT__/8443/" /etc/stunnel/menu.conf
mkdir -p /var/run/stunnel4; chown stunnel4:stunnel4 /var/run/stunnel4
stunnel /etc/stunnel/menu.conf &>/var/log/stunnel4/menu.log &
fi
# Iniciar rsyslog, si es necesario.
[ -S /dev/log ] || service rsyslog start