1
0
Fork 0
Peeper/install-cronjob.sh

10 lines
341 B
Bash
Raw Normal View History

2025-07-29 13:36:27 -05:00
#!/bin/bash
# Add the cron entry if not already present
CRONLINE='0 2 * * * curl -s "https://https://forge.xavier.cc/xavier/Peeper/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."