3
0
Fork 0
forked from mirrors/nixpkgs

singularity-tools: Check for /bin/sh existence before symlink

Fixes the case where the user has bashInteractive in the
container contents
This commit is contained in:
cfhammill 2020-07-13 17:20:14 -04:00
parent 26291ccf34
commit 8975b7b0e2

View file

@ -86,7 +86,9 @@ rec {
done
# Create runScript and link shell
ln -s ${runtimeShell} bin/sh
if [ ! -e bin/sh ]; then
ln -s ${runtimeShell} bin/sh
fi
mkdir -p .singularity.d
ln -s ${runScriptFile} .singularity.d/runscript