2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 21:33:02 +01:00

update urlwatch

This commit is contained in:
kev
2019-05-09 17:18:05 +08:00
parent 0eec95749f
commit 9ddf89139a
2 changed files with 25 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ RUN set -xe \
libxslt-dev \
openssl-dev \
python3-dev \
&& echo '*/30 * * * * urlwatch' | crontab -
&& echo '*/30 * * * * cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db' | crontab -
VOLUME /root/.urlwatch
WORKDIR /root/.urlwatch

6
urlwatch/data/hooks.py Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env python3
import re
from urlwatch import filters
from urlwatch import jobs
from urlwatch import reporters