diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-04 16:11:16 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-04 16:11:16 +0100 |
commit | 6cf1c5c7eb6cb0337153f9c539bc24e83589a426 (patch) | |
tree | 45dc0d23e7b1065455d1035d3ef02b105577d440 | |
parent | 0fcae3ccff50194d0c421b5a60f2f7cad48d438f (diff) | |
download | s2i-base-httpd-6cf1c5c7eb6cb0337153f9c539bc24e83589a426.tar.gz |
move permission fixup to post script
-rwxr-xr-x | s2i/bin/assemble | 3 | ||||
-rwxr-xr-x | s2i/bin/assemble.post | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/s2i/bin/assemble b/s2i/bin/assemble index 652b321..84ba25d 100755 --- a/s2i/bin/assemble +++ b/s2i/bin/assemble @@ -15,5 +15,4 @@ cat <<EOF > html/index.html </html> EOF -echo "---> Fix permissions ..." -chmod -R +r html +source ${0}.post diff --git a/s2i/bin/assemble.post b/s2i/bin/assemble.post new file mode 100755 index 0000000..839410c --- /dev/null +++ b/s2i/bin/assemble.post @@ -0,0 +1,4 @@ +echo "---> Fix permissions ($HOME) ..." +find $HOME -type f -print0 | xargs -0 chmod +r +find $HOME -type d -print0 | xargs -0 chmod +r +find $HOME -type d -print0 | xargs -0 chmod +x |