Skip to content

Commit

Permalink
fix user images that are missing bv_env
Browse files Browse the repository at this point in the history
  • Loading branch information
ylep committed Mar 1, 2024
1 parent 2bef6f5 commit a4c9b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/casa_distro/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,12 @@ def create_user_image(base_image,
if [ -f /casa/host/install/bin/bv_env ]; then
# try r/w install
/usr/local/bin/entrypoint /casa/host/install/bin/bv_env "$@"
else
elif [ -f /casa/install/bin/bv_env ]; then
# otherwise use the builtin (read-only) install in the image
/usr/local/bin/entrypoint /casa/install/bin/bv_env "$@"
else
# fall back to no bv_env if it is missing
/usr/local/bin/entrypoint "$@"
fi
else
echo 'The Singularity image has been run without arguments, and'
Expand Down

0 comments on commit a4c9b53

Please sign in to comment.