doc: Clarify some parts

This commit is contained in:
Glenn Y. Rolland 2022-12-30 15:24:35 +01:00
parent bf2cd29528
commit ecac47ae7b

View file

@ -40,6 +40,8 @@ Deploy
## Create Wrapper
Add git user on host
adduser --disabled-password git
adduser git docker
@ -48,7 +50,7 @@ Create ssh key for git user
ssh-keygen -t rsa -f /home/git/.ssh/id_rsa -C "Gitea Host Key"
chmod 600 /home/git/.ssh/id_rsa
Create `/usr/local/bin/gitea`
Create `/usr/local/bin/gitea` with the following content
GITEA_CID=code.web.1
# GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}')"
@ -56,3 +58,5 @@ Create `/usr/local/bin/gitea`
ssh -T -p 22 -o StrictHostKeyChecking=no git@$GITEA_IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
Success.