Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
#复制文件
COPY --from=builder /etc/ShellCrash /etc/ShellCrash
COPY --from=builder /tmp/CrashCore.tar.gz /etc/ShellCrash/CrashCore.tar.gz
RUN cp -a /etc/ShellCrash /etc/ShellCrash_backup
COPY --from=builder /etc/profile /etc/profile
COPY --from=builder /usr/bin/crash /usr/bin/crash

Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ mkdir -p /root/ShellCrash
```shell
docker run -d \
………………
-v shellcrash_configs:/etc/ShellCrash/configs \
-v shellcrash_configs:/etc/ShellCrash \
………………
```

Expand Down
2 changes: 1 addition & 1 deletion docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- net.ipv4.ip_forward: 1
# - net.ipv6.conf.all.forwarding=1
volumes:
- shellcrash_configs:/etc/ShellCrash/configs:rw
- shellcrash_configs:/etc/ShellCrash:rw
restart: unless-stopped

volumes:
Expand Down
1 change: 1 addition & 0 deletions docker/s6-rc.d/sc-init/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
10 changes: 10 additions & 0 deletions docker/s6-rc.d/sc-init/up
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/command/execlineb -P
foreground {
if { test ! -d /etc/ShellCrash }
mkdir -p /etc/ShellCrash
}
foreground {
if { sh -c "[ -z \"$(ls -A /etc/ShellCrash 2>/dev/null)\" ]" }
cp -a /etc/ShellCrash_backup/. /etc/ShellCrash/
}
exit 0
Empty file.