Major Changes: - Updated all code references from hvacknowitall/hvacnkowitall to hkia - Renamed all existing markdown files to use hkia_ prefix - Updated configuration files, scrapers, and production scripts - Modified systemd service descriptions to use HKIA - Changed NAS sync path to /mnt/nas/hkia Files Updated: - 20+ source files updated with new naming convention - 34 markdown files renamed to hkia_* format - All ScraperConfig brand_name parameters now use 'hkia' - Documentation updated to reflect new naming Rationale: - Shorter, cleaner filenames - Consistent branding across all outputs - Easier to type and reference - Maintains same functionality with improved naming Next Steps: - Deploy updated services to production - Update any external references to old naming - Monitor scrapers to ensure proper operation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
74 lines
No EOL
2.1 KiB
Bash
Executable file
74 lines
No EOL
2.1 KiB
Bash
Executable file
#!/bin/bash
|
|
# Update script to enable image downloading in production
|
|
|
|
echo "Updating HVAC Content Aggregation to include image downloads..."
|
|
echo
|
|
|
|
# Stop and disable old services
|
|
echo "Stopping old services..."
|
|
sudo systemctl stop hvac-content-8am.timer hvac-content-12pm.timer
|
|
sudo systemctl disable hvac-content-8am.service hvac-content-12pm.service
|
|
sudo systemctl disable hvac-content-8am.timer hvac-content-12pm.timer
|
|
|
|
# Copy new service files
|
|
echo "Installing new services with image downloads..."
|
|
sudo cp hvac-content-images-8am.service /etc/systemd/system/
|
|
sudo cp hvac-content-images-12pm.service /etc/systemd/system/
|
|
|
|
# Create new timer files (reuse existing timers with new names)
|
|
sudo tee /etc/systemd/system/hvac-content-images-8am.timer > /dev/null <<EOF
|
|
[Unit]
|
|
Description=Run HVAC Content with Images at 8 AM daily
|
|
|
|
[Timer]
|
|
OnCalendar=*-*-* 08:00:00
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|
|
EOF
|
|
|
|
sudo tee /etc/systemd/system/hvac-content-images-12pm.timer > /dev/null <<EOF
|
|
[Unit]
|
|
Description=Run HVAC Content with Images at 12 PM daily
|
|
|
|
[Timer]
|
|
OnCalendar=*-*-* 12:00:00
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|
|
EOF
|
|
|
|
# Reload systemd
|
|
echo "Reloading systemd..."
|
|
sudo systemctl daemon-reload
|
|
|
|
# Enable new services
|
|
echo "Enabling new services..."
|
|
sudo systemctl enable hvac-content-images-8am.timer
|
|
sudo systemctl enable hvac-content-images-12pm.timer
|
|
|
|
# Start timers
|
|
echo "Starting timers..."
|
|
sudo systemctl start hvac-content-images-8am.timer
|
|
sudo systemctl start hvac-content-images-12pm.timer
|
|
|
|
# Show status
|
|
echo
|
|
echo "Service status:"
|
|
sudo systemctl status hvac-content-images-8am.timer --no-pager
|
|
echo
|
|
sudo systemctl status hvac-content-images-12pm.timer --no-pager
|
|
echo
|
|
echo "Next scheduled runs:"
|
|
sudo systemctl list-timers hvac-content-images-* --no-pager
|
|
|
|
echo
|
|
echo "✅ Update complete! Image downloading is now enabled in production."
|
|
echo "The scrapers will now download:"
|
|
echo " - Instagram post images and video thumbnails"
|
|
echo " - YouTube video thumbnails"
|
|
echo " - Podcast episode thumbnails"
|
|
echo
|
|
echo "Images will be synced to: /mnt/nas/hkia/media/" |