mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
gitea
This commit is contained in:
parent
f904027f4f
commit
a6f4daadd6
3 changed files with 4 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
# modify time: 202402260945, you can modify here to trigger Docker Build action
|
||||
# modify time: 202402271102, you can modify here to trigger Docker Build action
|
||||
# Dockerfile refer to: https://github.com/go-gitea/gitea/blob/main/Dockerfile
|
||||
FROM gitea/gitea:1.20.4
|
||||
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
cred_path="/data/gitea/credential"
|
||||
if [ -e "$cred_path" ]; then
|
||||
echo "File $cred_path exists. disable /etc/s6/user"
|
||||
exit 125
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
exit 125
|
||||
|
|
|
@ -10,13 +10,14 @@ admin_username="websoft9"
|
|||
admin_email="admin@mydomain.com"
|
||||
|
||||
while [ "$response" != "200" ]; do
|
||||
sleep 3
|
||||
response=$(curl -s -o /dev/null -w "%{http_code}" localhost:3000)
|
||||
if [ "$response" = "200" ]; then
|
||||
echo "gitea is runing"
|
||||
break
|
||||
fi
|
||||
count=$((count+1))
|
||||
if [ $count -gt 10 ]; then
|
||||
if [ $count -gt 60 ]; then
|
||||
echo "gitea is not runing"
|
||||
break
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue