Skip to content

Commit

Permalink
Merge pull request #1973 from metwork-framework/mergify/bp/release_2.…
Browse files Browse the repository at this point in the history
…2/pr-1972

build: add salem sample data for mfext only (backport #1972)
  • Loading branch information
thebaptiste authored Nov 5, 2024
2 parents 202c3ed + ab28fb1 commit 2b853f8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions adm/templates/profile
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,15 @@ fi
{% endif %}

{% if MFMODULE == "MFEXT" %}
# For salem users not allowed to get salem-sample-data file from internet, you can execute (once only) the following two commented lines
# mkdir -p "${HOME}/.salem_cache"
# ln -s "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip" "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
if test -f "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"; then
if test ! -d "${HOME}/.salem_cache"; then
mkdir -p "${HOME}/.salem_cache"
fi
if test ! -L "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"; then
rm -f "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
ln -s "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip" "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
fi
fi
{% endif %}

# A little kind of magic to deal with [log]/json_file=AUTO
Expand Down

0 comments on commit 2b853f8

Please sign in to comment.