20 lines
350 B
Django/Jinja
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
|