-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from Simranpal/fix/hana-exe-extraction
Workaround for installation when using exe archive
- Loading branch information
Showing
6 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% macro get_hana_exe_extract_dir(hana) -%} | ||
{%- set hana_extract_dir = hana.hana_extract_dir %} | ||
{#- Below is temporary workaround to update the software installation path when using unrar for HANA multipart rar archive#} | ||
{#- TODO: Find better solution to set or detect the correct extraction path when extracting multipart rar archive#} | ||
{#- Below logic finds the extraction location based on name of multipart exe archive filename#} | ||
{%- if hana.hana_archive_file is defined and hana.hana_archive_file.endswith((".exe", ".EXE")) %} | ||
{%- set archive_base_name = salt['file.basename']( hana.hana_archive_file.split('.')[0]) %} | ||
{%- set archive_name = archive_base_name.split('_')[0] %} | ||
{%- set hana_extract_dir = hana_extract_dir| path_join(archive_name) %} | ||
{%- endif %} | ||
{{- hana_extract_dir }} | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
------------------------------------------------------------------- | ||
Sun Oct 11 04:21:32 UTC 2020 - Simranpal Singh <[email protected]> | ||
|
||
- Fix the hana media extraction and installation logics when using exe archives | ||
|
||
------------------------------------------------------------------- | ||
Thu Oct 8 02:34:37 UTC 2020 - Simranpal Singh <[email protected]> | ||
|
||
|