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