From c8ee6a975bb728cea73a1635e0aaad350579a060 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 31 Dec 2025 04:26:25 -0800 Subject: [PATCH] Add complete-gitea-push.sh --- complete-gitea-push.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 complete-gitea-push.sh diff --git a/complete-gitea-push.sh b/complete-gitea-push.sh new file mode 100644 index 0000000..1b82463 --- /dev/null +++ b/complete-gitea-push.sh @@ -0,0 +1,40 @@ +#!/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"