Skip to content

Commit

Permalink
Make a pristine copy of /etc/mfs (for seeding volumes) and adjust d…
Browse files Browse the repository at this point in the history
…efault permissions for /var/lib/mfs to be 1777 instead of raw 777
  • Loading branch information
tianon committed Mar 5, 2024
1 parent 4ac1865 commit 414b3d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,14 @@ RUN set -eux; \
cfg="${sample%.sample}"; \
[ -s "$cfg" ] || cp -avT "$sample" "$cfg"; \
done; \
cp -avT /etc/mfs /etc/mfs.sample; \
rm -v /etc/mfs.sample/*.sample; \
cp -avT /var/lib/mfs /var/lib/mfs.sample; \
cp -avT /var/lib/mfs/metadata.mfs.empty /var/lib/mfs/metadata.mfs; \
\
# allow us to run as an arbitrary user but still modify configuration
chmod 777 /etc/mfs /var/lib/mfs; \
chmod 777 /etc/mfs; \
chmod 1777 /var/lib/mfs; \
\
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark > /dev/null; \
Expand Down

0 comments on commit 414b3d7

Please sign in to comment.