1
0
Fork 0
Peeper/install-cronjob.sh
2025-07-29 13:41:59 -05:00

9 lines
348 B
Bash

#!/bin/bash
# Add the cron entry if not already present
CRONLINE='0 2 * * * curl -s https://forge.xavier.cc/xavier/Peeper/raw/branch/main/setup-peepinfo.sh | bash'
# Append to crontab only if not already present
(crontab -l 2>/dev/null | grep -vF "$CRONLINE"; echo "$CRONLINE") | crontab -
echo "✅ Daily cron job added to run peepinfo setup."