Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed Jan 25, 2025
1 parent 5ca0e59 commit 8a737fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ fi
if [ "$ENABLE_HEARTBEAT" == "y" ]; then
echo -e "${BLUE}►► Setting up heartbeat monitoring...${NC}"
HEARTBEAT_CRONJOB="* * * * * wget --spider $HEARTBEAT_URL > /dev/null 2>&1"
if ! (crontab -l 2>/dev/null || true) | grep -F -- "$HEARTBEAT_CRONJOB" > /dev/null; then
(crontab -l 2>/dev/null || true; echo "$HEARTBEAT_CRONJOB") | crontab -
else
echo -e "${YELLOW}Heartbeat monitoring cronjob already exists. No changes made.${NC}"
Expand Down

0 comments on commit 8a737fa

Please sign in to comment.