Skip to content

Commit

Permalink
Merge pull request #23 from singularityware/fix/issue
Browse files Browse the repository at this point in the history
fix for #22
  • Loading branch information
chrisgorgo authored Jul 25, 2017
2 parents 04c465d + 213b529 commit 4eeb4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker2singularity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ fi
# making sure that any user can read and execute everything in the container
echo "(7/9) Fixing permissions..."
singularity exec --writable --contain $new_container_name /bin/sh -c "find /* -maxdepth 0 -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+r -R '{}' \;"
buildname=$(head -n 1 /etc/issue)
buildname=$(singularity exec --contain $new_container_name /bin/sh -c "head -n 1 /etc/issue")
echo $buildname
if [[ $buildname =~ Buildroot|Alpine ]] ; then
# we're running on a Builroot container and need to use Busybox's find
echo "We're running on BusyBox/Buildroot"
Expand Down

0 comments on commit 4eeb4ca

Please sign in to comment.