initial commit
This commit is contained in:
19
templates/start-gitea.sh.j2
Normal file
19
templates/start-gitea.sh.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user