Skip to content

Commit

Permalink
Set _auto_ for TSS (detect CA)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zeithaml <[email protected]>
  • Loading branch information
Martin-Zeithaml committed Sep 4, 2024
1 parent 1a55ec6 commit 9df5f67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions bin/commands/init/certificate/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ else # JCE* content
fi
fi

if [ -z "${zosmf_ca}" -a "${security_product}" = "RACF" -a -n "${zosmf_host}" ]; then
zosmf_ca="_auto_"
if [ "${security_product}" = "RACF" -o "${security_product}" = "TSS" ]; then
if [ -z "${zosmf_ca}" -a -n "${zosmf_host}" ]; then
zosmf_ca="_auto_"
fi
fi
fi

Expand Down
6 changes: 3 additions & 3 deletions bin/libs/zwecli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ EOF
if [ -f "${command_path}/.help" ]; then
echo "------------------"
echo "Description"
padding_left "$(cat "${command_path}/.help")" " "
padding_left "$(sed 's/^```yaml$/```/g' "${command_path}/.help")" " "
echo
fi

Expand Down Expand Up @@ -309,7 +309,7 @@ EOF
# find sub-commands
command_path=$(zwecli_calculate_command_path)
subdirs=$(find_sub_directories "${command_path}")
if [ -n "${subdirs}" ]; then
if [ -n "${subdirs}" ]; then
echo "------------------"
echo "Available sub-command(s)"
while read -r line; do
Expand All @@ -326,7 +326,7 @@ EOF
echo "Example(s)"
padding_left "$(cat "${command_path}/.examples")" " "
echo
fi
fi
exit 100
fi
}
Expand Down

0 comments on commit 9df5f67

Please sign in to comment.