Automation: Task execution results 2026-02-09 11:12:12

This commit is contained in:
2026-02-09 11:12:12 -06:00
parent 52735bc93d
commit be5539824e
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Fix Git repository ownership
# Add safe directory
git config --global --add safe.directory /var/www/mkdocs/site
# Fix ownership
chown -R root:root /var/www/mkdocs/site
# Now update the footer and push
cd /var/www/mkdocs/site/docs
sed -i "s/\$(date)/$(date '+%B %d, %Y')/" index.md
# Rebuild
cd /var/www/mkdocs/site
source /var/www/mkdocs/venv/bin/activate
mkdocs build
# Commit and push
git add docs/index.md
git commit -m "Fix footer date: $(date '+%B %d, %Y')"
git push origin main
echo "Git ownership fixed, footer updated, pushed to Git"

View File

@@ -0,0 +1,17 @@
Task: fix-git-ownership.sh
Started: Mon Feb 9 11:12:11 AM CST 2026
==========================================
INFO - Cleaning site directory
INFO - Building documentation to directory: /var/www/mkdocs/site/site
INFO - Documentation built in 0.28 seconds
[main 741154e] Fix footer date: February 09, 2026
1 file changed, 22 insertions(+)
create mode 100644 docs/index.md
remote: . Processing 1 references
remote: Processed 1 references in total
To https://git.firefrostgaming.com/firefrost-gaming/firefrost-documentation.git
088319f..741154e main -> main
Git ownership fixed, footer updated, pushed to Git
==========================================
Finished: Mon Feb 9 11:12:12 AM CST 2026
Exit Code: 0