Merge pull request 'refs #2196 remove OG bash functions from the agent's environment' (#55) from no-bash-functions-in-agent into main
Reviewed-on: #55pull/56/head 0.15.0
commit
b64b6d79b3
|
@ -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.15.0] - 2025-06-10
|
||||
|
||||
### Changed
|
||||
|
||||
- Remove opengnsys bash functions from the agent's environment
|
||||
|
||||
## [0.14.2] - 2025-06-09
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -26,7 +26,12 @@ if [ -f "/usr/share/OGAgent/opengnsys/linux/OGAgentService.py" -a "$ogstatus" !=
|
|||
export OGAGENTCFG_URLMENU_SCHEME=http
|
||||
export OGAGENTCFG_URLMENU_IP=127.0.0.1
|
||||
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
|
||||
for FILE in index $OGGROUP $(ogGetIpAddress)
|
||||
do
|
||||
|
|
Loading…
Reference in New Issue