Files
vps-ansible/templates/start-gitea.sh.j2
2025-10-16 22:54:40 +02:00

20 lines
350 B
Django/Jinja

#!/bin/bash
# Gitea startup script
cd /opt/gitea
# Pull latest image
docker-compose pull
# Start the service
docker-compose up -d
# Check if container is running
if docker-compose ps | grep -q "Up"; then
echo "Gitea started successfully"
echo "Access it at: https://{{ gitea_domain }}"
else
echo "Failed to start Gitea"
exit 1
fi