We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7076e7 commit 6b5730dCopy full SHA for 6b5730d
bittorrent-superseeder/Dockerfile
@@ -17,3 +17,8 @@ RUN apt update 2> /dev/null && \
17
apt clean -y && \
18
rm -rf /var/lib/apt/lists/*
19
20
+# Install start script
21
+COPY bin/ /usr/local/bin/
22
+RUN chmod -R 0500 /usr/local/bin/*
23
+
24
+ENTRYPOINT ["start.sh"]
bittorrent-superseeder/bin/start.sh
@@ -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