Changing crontab to stdout.

pull/7/head v1.5
Ayush Sharma 2018-11-11 16:04:11 +05:30
parent e584be4760
commit 4e6e5c4d85
1 changed files with 1 additions and 1 deletions

2
Dockerfile Normal file → Executable file
View File

@ -19,7 +19,7 @@ RUN cd /root;\
sed -i 's/"toots.app_secure_token": ""/"toots.app_secure_token": "'$mastodon_token'"/g' config.json;\
RUN crontab -l > /tmp/crontab;\
echo '* * * * * cd /root/tweet-toot; python3 /root/tweet-toot/run.py 2>&1 /tmp/tweet-toot.log' >> /tmp/crontab;\
echo '* * * * * cd /root/tweet-toot; python3 /root/tweet-toot/run.py >> /tmp/tweet-toot.log 2>&1' >> /tmp/crontab;\
crontab /tmp/crontab
RUN touch /tmp/tweet-toot.log