feat: add automated crons, telemetry cleanup, RTL support, and manual road candidate tools
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
# --------------------------------------------------------------------------
|
||||
# Setup Host-Level Crontab for Intaleq Map Platform
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
set -e
|
||||
|
||||
echo "Setting up crontab for map-saas..."
|
||||
|
||||
CRON_FILE="/tmp/map_saas_cron"
|
||||
|
||||
# 1. Update Map Data (OSM/Overture) every 10 days at 3:00 AM
|
||||
echo "0 3 */10 * * /home/hamzadoctor/app/infrastructure/scripts/update-data.sh >> /home/hamzadoctor/app/infrastructure/logs/update-data.log 2>&1" > $CRON_FILE
|
||||
|
||||
# 2. Discover road closures daily at 4:00 AM
|
||||
echo "0 4 * * * curl -X POST -H \"x-api-key: intaleq_secret_2026\" http://localhost:3200/api/map-refinement/roads/discover-closures >> /home/hamzadoctor/app/infrastructure/logs/closures.log 2>&1" >> $CRON_FILE
|
||||
|
||||
# Install crontab
|
||||
crontab $CRON_FILE
|
||||
rm $CRON_FILE
|
||||
|
||||
echo "✅ Crontab installed successfully!"
|
||||
crontab -l
|
||||
Reference in New Issue
Block a user