2022-09-15 00:24:08 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2022-09-26 16:22:27 +02:00
|
|
|
# this runs as a normal user.
|
|
|
|
|
|
2022-09-15 00:24:08 +02:00
|
|
|
cd /usr/local/cache
|
|
|
|
|
for i in *
|
|
|
|
|
do
|
2022-09-26 16:22:27 +02:00
|
|
|
if ! test -a /mnt/cache/$i; then
|
|
|
|
|
cp -ar "$i" /mnt/cache/
|
2022-09-15 00:24:08 +02:00
|
|
|
fi
|
|
|
|
|
done
|