9 lines
348 B
Bash
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."
|