refs #2196 remove OG bash functions from the agent's environment
parent
36bf1539d6
commit
efc22c1bcd
|
@ -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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.15.0] - 2025-06-10
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Remove opengnsys bash functions from the agent's environment
|
||||||
|
|
||||||
## [0.14.2] - 2025-06-09
|
## [0.14.2] - 2025-06-09
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -26,7 +26,12 @@ if [ -f "/usr/share/OGAgent/opengnsys/linux/OGAgentService.py" -a "$ogstatus" !=
|
||||||
export OGAGENTCFG_URLMENU_SCHEME=http
|
export OGAGENTCFG_URLMENU_SCHEME=http
|
||||||
export OGAGENTCFG_URLMENU_IP=127.0.0.1
|
export OGAGENTCFG_URLMENU_IP=127.0.0.1
|
||||||
export OGAGENTCFG_URLMENU_PORT=81
|
export OGAGENTCFG_URLMENU_PORT=81
|
||||||
python3 -m opengnsys.linux.OGAgentService fg
|
(
|
||||||
|
## remove bash functions and some OG vars from the agent's environment
|
||||||
|
unset -f $(declare -F |awk '/og[A-Z]|NT[A-Z]/ { print $3 }')
|
||||||
|
unset $(declare |awk -F= '/^MSG_|^OG_ERR_/ { print $1 }')
|
||||||
|
python3 -m opengnsys.linux.OGAgentService fg
|
||||||
|
)
|
||||||
else
|
else
|
||||||
for FILE in index $OGGROUP $(ogGetIpAddress)
|
for FILE in index $OGGROUP $(ogGetIpAddress)
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue