Skip to content

Commit

Permalink
Merge pull request #296 from zowe/feature/v2/allow-sh-plugin-init-whe…
Browse files Browse the repository at this point in the history
…n-configmgr

Allow shell plugins init to be run conditional to user preference
  • Loading branch information
1000TurquoisePogs authored Feb 20, 2024
2 parents eab46e7 + fda2a72 commit a6d4d1d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ cd ../lib
CONFIG_FILE=$ZWE_CLI_PARAMETER_CONFIG $NODE_BIN initInstance.js

cd ${COMPONENT_HOME}/share/zlux-app-server/bin/init
if [ "${ZWE_zowe_useConfigmgr}" = "true" ]; then
if [ "${ZWE_components_app_server_zowe_useConfigmgr}" = "false" ]; then
. ./plugins-init.sh
elif [ "${ZWE_zowe_useConfigmgr}" = "true" ]; then
_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/components/app-server/share/zlux-app-server/bin/init/plugins-init.js"
else
. ./plugins-init.sh
Expand Down
12 changes: 12 additions & 0 deletions schemas/app-server-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
"type": "object",
"additionalProperties": true,
"properties": {
"zowe": {
"type": "object",
"additionalProperties": true,
"description": "Contains customizations from the Zowe global configuration.",
"properties": {
"useConfigmgr": {
"type": "boolean",
"default": true,
"description": "Determines whether configmgr will be used during the startup proceedure, such as to register plugins."
}
}
},
"node": {
"type": "object",
"description": "Configuration options specific to the app-server and things it depends upon",
Expand Down

0 comments on commit a6d4d1d

Please sign in to comment.