17 lines
512 B
Bash
Executable File
17 lines
512 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Start cron daemon
|
|
cron
|
|
|
|
# Configure SSH for git
|
|
export GIT_SSH_COMMAND="ssh -i /root/.ssh/gitea_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
|
|
|
|
# Run initial Gitea scan
|
|
echo "Running initial Gitea scan..."
|
|
cd /app && bun run src/aggregator/gitea-scanner.ts --verbose 2>&1 || echo "Scan completed with errors"
|
|
|
|
# Start aggregator
|
|
echo "Starting aggregator..."
|
|
exec bun run src/aggregator/index.ts --port 6420 --paths "/projects/websites,/projects/apps,/projects/gitea"
|