mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-03-28 01:12:50 +00:00
Fix permission denied on OpenShift
Refer to https://docs.openshift.com/container-platform/4.4/openshift_images/create-images.html#use-uid_create-images
This commit is contained in:
committed by
Tobias Kaupat
parent
5b4d050643
commit
b85c6d9603
@@ -24,6 +24,14 @@ ENV RESTIC_FORGET_ARGS=""
|
||||
ENV RESTIC_JOB_ARGS=""
|
||||
ENV MAILX_ARGS=""
|
||||
|
||||
# openshift fix
|
||||
RUN chgrp -R 0 /mnt && \
|
||||
chmod -R g=u /mnt && \
|
||||
chgrp -R 0 /var/spool/cron/crontabs/root && \
|
||||
chmod -R g=u /var/spool/cron/crontabs/root && \
|
||||
chgrp -R 0 /var/log/cron.log && \
|
||||
chmod -R g=u /var/log/cron.log
|
||||
|
||||
# /data is the dir where you have to put the data to be backed up
|
||||
VOLUME /data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user