Skip to content

Commit

Permalink
fix(iptvboss): enable cronitor
Browse files Browse the repository at this point in the history
  • Loading branch information
groenator committed Mar 1, 2024
1 parent 4b6e62a commit 9b24392
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ RUN yum install -y wget cronie vlc \
# Create a new user with home directory set to /headless
RUN useradd -m -d /headless -s /bin/bash iptvboss

#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; \
fi

# Set the working directory
WORKDIR /headless

Expand Down Expand Up @@ -48,11 +56,6 @@ 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 9b24392

Please sign in to comment.