mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-11-20 00:55:19 +00:00
fix: set script modes in the image independent of the build umask
COPY --chmod=755 for backup.sh, check.sh and entry.sh. Restore the exact -rwxr-xr-x checks in tests/structure.yml and drop the umask workaround in tests/sabotage.py. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6605114e27
commit
d31d75e8ce
4 files changed
+9
-10
No files matched your search
+3
-3
@@ -60,9 +60,9 @@ RUN mkdir /.cache && \
|
||||
# /data is the dir where you have to put the data to be backed up
|
||||
VOLUME /data
|
||||
|
||||
COPY backup.sh /bin/backup
|
||||
COPY check.sh /bin/check
|
||||
COPY entry.sh /entry.sh
|
||||
COPY --chmod=755 backup.sh /bin/backup
|
||||
COPY --chmod=755 check.sh /bin/check
|
||||
COPY --chmod=755 entry.sh /entry.sh
|
||||
|
||||
ENTRYPOINT ["/entry.sh"]
|
||||
CMD ["tail","-fn0","/var/log/cron.log"]
|
||||
Reference in new issue
Block a user