10 lines
341 B
Bash
10 lines
341 B
Bash
|
|
#!/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."
|