remove a unused sed and adds export variables of ogcore

engine-branch
Luis Gerardo Romero Garcia 2025-02-24 11:45:40 +01:00
parent a593ab1498
commit c7eb5d4f26
1 changed files with 3 additions and 0 deletions

View File

@ -22,12 +22,15 @@ if [ -f "/usr/share/OGAgent/opengnsys/linux/OGAgentService.py" -a "$ogstatus" !=
# Ejecutar servicio cliente. # Ejecutar servicio cliente.
cd /usr/share/OGAgent cd /usr/share/OGAgent
export OGAGENTCFG_OGCORE_IP=$ogcore export OGAGENTCFG_OGCORE_IP=$ogcore
export OGAGENTCFG_OGLOG_IP=$oglog
export OGAGENTCFG_URLMENU_IP=$ogcore
python3 -m opengnsys.linux.OGAgentService fg python3 -m opengnsys.linux.OGAgentService fg
else else
for FILE in index $OGGROUP $(ogGetIpAddress) for FILE in index $OGGROUP $(ogGetIpAddress)
do do
[ -f $OGCAC/menus/$FILE.html ] && OGMENU="$OGCAC/menus/$FILE.html" [ -f $OGCAC/menus/$FILE.html ] && OGMENU="$OGCAC/menus/$FILE.html"
done done
echo "exec /usr/bin/OGBrowser $OGMENU" > /home/root/
/usr/bin/OGBrowser -qws $OGMENU /usr/bin/OGBrowser -qws $OGMENU
fi fi