Skip to content

Commit 6b5730d

Browse files
committed
Stub of start.sh
1 parent b7076e7 commit 6b5730d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

bittorrent-superseeder/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ RUN apt update 2> /dev/null && \
1717
apt clean -y && \
1818
rm -rf /var/lib/apt/lists/*
1919

20+
# Install start script
21+
COPY bin/ /usr/local/bin/
22+
RUN chmod -R 0500 /usr/local/bin/*
23+
24+
ENTRYPOINT ["start.sh"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
echo "Update crontab for ZIM synchronisation"
4+
printf "
5+
@reboot root /usr/local/bin/bin/sync_superseeder.sh >> /var/log/sync_superseeder.log
6+
0 * * * * root /usr/local/bin/bin/sync_superseeder.sh >> /var/log/sync_superseeder.log
7+
" >> /etc/crontab
8+
9+
service cron start && crontab /etc/crontab
10+
11+
echo "Listening to cron logs..."
12+
tail -f /var/log/sync_superseeder.log

0 commit comments

Comments
 (0)