diff --git a/CHANGELOG.md b/CHANGELOG.md index 736ab7b..d4d2d7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/ogclient/etc/init/default.sh b/ogclient/etc/init/default.sh index 53ed1aa..15a65c1 100755 --- a/ogclient/etc/init/default.sh +++ b/ogclient/etc/init/default.sh @@ -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