Skip to content

Commit

Permalink
feat(iptvboss): install cronitor
Browse files Browse the repository at this point in the history
  • Loading branch information
groenator committed Mar 1, 2024
1 parent d17666f commit 4b6e62a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ ENV PATH="/usr/lib/iptvboss/bin:${PATH}"

# Apply cron job
RUN crontab /var/spool/crontab/iptvboss/iptvboss-cron

#Configure cronitor
ARG CRONITOR_ENABLE=false
ENV CRONITOR_KEY=$CRONITOR_KEY

RUN if [ "$CRONITOR_ENABLE" = "true" ]; then \
curl https://cronitor.io/install-linux?sudo=1 -H "API-KEY: $CRONITOR_KEY" | sh && \
cronitor discover; \
fi

0 comments on commit 4b6e62a

Please sign in to comment.