镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 06:26:46 +00:00
10 行
269 B
Bash
可执行文件
10 行
269 B
Bash
可执行文件
#!/bin/bash
|
|
if [ ! -d "$TUNASYNC_WORKING_DIR" ]; then
|
|
echo "Directory not exists, fail"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Syncing to $TUNASYNC_WORKING_DIR"
|
|
|
|
/usr/bin/timeout -s INT 3600 /home/tuna/.virtualenvs/bandersnatch/bin/bandersnatch -c /etc/bandersnatch.conf mirror || exit 1
|