.
This commit is contained in:
parent
c4bf3b8bee
commit
8f29a4f56d
10 changed files with 819 additions and 15 deletions
|
|
@ -1,6 +1,10 @@
|
|||
#!/bin/sh
|
||||
set -ex
|
||||
set -eux
|
||||
find /mnt -type f | while IFS= read -r file; do
|
||||
dest="/data/$(dirname "${file#/mnt/}")"
|
||||
mkdir -p "$dest"
|
||||
cp -f "$file" "$dest"
|
||||
done
|
||||
|
||||
cd /data
|
||||
cp -rf /mnt/* . || true
|
||||
exec "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue