Skip to content

Commit

Permalink
verify: Simulate strict umask (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax authored Aug 1, 2024
1 parent f010aa3 commit 78cd23f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion verify_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ complete () {
}

verify () {
tar xf $EXAMPLE_DIR -C $RUNDIR
tar xf "$EXAMPLE_DIR" -C "$RUNDIR"
export DOCKER_NO_PULL=1
export DOCKER_RMI_CLEANUP=1
# This is set to simulate an environment where users have shared home drives protected
# by a strong umask (ie only group readable by default).
umask 027
chmod -R o-rwx "$RUNDIR"
cd "$RUNDIR"
dirlist=$(ls .)
if [[ "$dirlist" == "external" ]]; then
Expand Down

0 comments on commit 78cd23f

Please sign in to comment.