Skip to content

Commit

Permalink
container slashRoot preserve symlinks (CO-2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
skoranda committed Feb 6, 2023
1 parent 60c7973 commit c4a705f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions container/match/base/comanage_shibboleth_sp_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ function comanage_shibboleth_sp_utils::process_slash_root() {

pushd "${slash_root}"

# Copy all files and preserve all details but exclude any files
# Copy all files and sysmlinks and preserve all details but exclude any files
# for the Shibboleth SP if they exist to allow the Shib SP
# entrypoint script to process that path and prevent a race
# condition.
find etc/shibboleth -type f | xargs -I{} cp --preserve=all --parents {} / > ${OUTPUT} 2>&1
find etc/shibboleth -type f,l | xargs -I{} cp --preserve=all --parents --no-dereference {} / > ${OUTPUT} 2>&1

popd

Expand Down
4 changes: 2 additions & 2 deletions container/match/base/comanage_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ function comanage_utils::process_slash_root() {

pushd "${slash_root}"

# Copy all files and preserve all details but exclude any files
# Copy all files and symlinks and preserve all details but exclude any files
# for the Shibboleth SP if they exist to allow the Shib SP
# entrypoint script to process that path and prevent a race
# condition.
find . -type f -not -path "./etc/shibboleth/*" | xargs -I{} cp --preserve=all --parents {} / > ${OUTPUT} 2>&1
find . -type f,l -not -path "./etc/shibboleth/*" | xargs -I{} cp --preserve=all --parents --no-dereference {} / > ${OUTPUT} 2>&1

popd

Expand Down

0 comments on commit c4a705f

Please sign in to comment.