remove a unused sed and adds export variables of ogcore
parent
a593ab1498
commit
c7eb5d4f26
|
@ -22,12 +22,15 @@ if [ -f "/usr/share/OGAgent/opengnsys/linux/OGAgentService.py" -a "$ogstatus" !=
|
|||
# Ejecutar servicio cliente.
|
||||
cd /usr/share/OGAgent
|
||||
export OGAGENTCFG_OGCORE_IP=$ogcore
|
||||
export OGAGENTCFG_OGLOG_IP=$oglog
|
||||
export OGAGENTCFG_URLMENU_IP=$ogcore
|
||||
python3 -m opengnsys.linux.OGAgentService fg
|
||||
else
|
||||
for FILE in index $OGGROUP $(ogGetIpAddress)
|
||||
do
|
||||
[ -f $OGCAC/menus/$FILE.html ] && OGMENU="$OGCAC/menus/$FILE.html"
|
||||
done
|
||||
echo "exec /usr/bin/OGBrowser $OGMENU" > /home/root/
|
||||
/usr/bin/OGBrowser -qws $OGMENU
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue