Inicjalizacja repozytorium po uporządkowaniu Gitea; dodanie gitignore

This commit is contained in:
root
2026-03-17 23:41:37 +01:00
commit 5e72233730
22 changed files with 631 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
echo "Generating runner token..."
TOKEN=$(openssl rand -hex 32)
if grep -q "RUNNER_TOKEN=" .env; then
sed -i "s/RUNNER_TOKEN=.*/RUNNER_TOKEN=$TOKEN/" .env
else
echo "RUNNER_TOKEN=$TOKEN" >> .env
fi
echo "Token: $TOKEN"
echo "Restarting runner..."
docker compose -f compose-runner.yml restart