Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib_hana - handle existing usr_sap_sapservices without any SAP profil… #222

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/bin/lib_hana
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ function __get_usr_sap_sapservices_profiles {

[[ -f /usr/sap/sapservices ]] && while read -r line ; do

[[ -z ${line} ]] && continue

fullprofile=${line//*pf=}
fullprofile=${fullprofile%% *}

profile=${fullprofile//*\/}

sid=${profile:0:3}
[[ -z ${sid} ]] && continue

hdb=${profile:4:5}
vhost=${profile:10}

Expand Down
2 changes: 2 additions & 0 deletions scripts/lib/check/0006_os_hana_release_sles.check
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ function check_0006_os_hana_release_sles {
_within_range=false

_hana_curr=$(GET_HANA_ARRAY_KV "HANA_${sid}" 'release')
[[ ${_hana_curr} == 'n/a' ]] && continue
[[ -z ${_hana_curr:6:1} ]] && continue

# i+=4 --> every 4th item
for ((i=0; i < ${#_sles_all[@]}; i+=4)); do
Expand Down