Skip to content

Commit

Permalink
Add option meant for debugging where app-server can use the older she…
Browse files Browse the repository at this point in the history
…ll plugins install process instead of the configmgr one even when zowe.useconfigmgr is set, if desired, by setting components.app-server.zowe.useconfigmgr as an override

Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed Feb 20, 2024
1 parent eab46e7 commit fda2a72
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 fda2a72

Please sign in to comment.