#!/bin/bash # Complete Gitea push - handles git install and push set -e echo "energy" | sudo -S apt-get update -qq echo "energy" | sudo -S apt-get install -y git -qq cd /home/kyle/scripts # Initialize git if needed if [ ! -d .git ]; then git init git config user.name "kyle" git config user.email "kyle@localhost" git branch -M main fi # Add and commit git add -A git commit -m "Home Assistant kiosk dashboard setup - Dashboard YAML configurations with card-mod - Browser Mod automation for auto-scrolling - Display rotation and sleep disable scripts - Home Assistant API query scripts - Dashboard launcher scripts - Setup guides and documentation" || echo "No changes to commit" # Push TOKEN="77d13be9a7dbae402cb21c08d9231047a645e050" REPO_URL="http://${TOKEN}@192.168.68.53:3000/kyle/ha-kiosk-dashboard.git" git remote remove origin 2>/dev/null || true git remote add origin "${REPO_URL}" git push -u origin main echo "" echo "✓ Successfully pushed to Gitea!" echo "Repository: http://192.168.68.53:3000/kyle/ha-kiosk-dashboard"