refs #2027 #2028 run stunnel during startup

pull/40/head
Natalia Serrano 2025-05-16 15:42:13 +02:00
parent ed070bc566
commit 6c88096eae
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,12 @@ 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
stunnel /etc/stunnel/menu.conf
fi
# Iniciar rsyslog, si es necesario.
[ -S /dev/log ] || service rsyslog start