File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if [ $# == 0 ] ; then
2020 echo $USAGE
2121 exit 1;
2222fi
23- mount_points=" /oasis /projects /scratch /local-scratch /work /home1 /corral-repl /beegfs /share/PI /extra /data /oak"
23+ mount_points=" /oasis /projects /scratch /local-scratch /work /home1 /corral-repl /corral-tacc / beegfs /share/PI /extra /data /oak"
2424while getopts ' :hm:' option; do
2525 case " $option " in
2626 h) echo " $USAGE "
174174# making sure that any user can read and execute everything in the container
175175echo " (7/9) Fixing permissions..."
176176singularity 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 '{}' \;"
177- if grep -q Buildroot /etc/issue ; then
178- # we're running on a Builroot container and need to use Busybox's find
179- echo " We're running on BusyBox/Buildroot"
180- singularity exec --writable --contain $new_container_name /bin/sh -c " find / -type f -or -type d -perm -u+x,o-x -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+x '{}' \;"
181- else
182- echo " We're not running on BusyBox/Buildroot"
183- singularity exec --writable --contain $new_container_name /bin/sh -c " find / -executable -perm -u+x,o-x -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+x '{}' \;"
184- fi
177+ singularity exec --writable --contain $new_container_name /bin/sh -c " find /* (-type f -or -type d) -perm -u+x,o-x -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+x '{}' \;"
185178
186179echo " (8/9) Stopping and removing the container..."
187180docker stop $container_id
You can’t perform that action at this time.
0 commit comments