New repo; Howto config

This commit is contained in:
Bandie 2020-05-21 12:12:28 +02:00
parent 7326d8f70d
commit 8856ba9cf4
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312
2 changed files with 14 additions and 1 deletions

View File

@ -29,6 +29,19 @@ Der Deamon besteht aus folgenden Dateien.
* foodoor-ssh-wrapper * foodoor-ssh-wrapper
* foodoor-update-keydb * foodoor-update-keydb
Zusätzlich sollte für das git-repo eine Config angelegt werden:
/root/.ssh/config
```
Host git.chaospott.de
User git
Port 2222
IdentityFile ~/.ssh/id_chaospott
```
Das IdentityFile ist der Deploy-SSH-Key, der im [Repo](https://git.chaospott.de/Chaospott/foodoor-keys) hinterlegt ist.
##Schüssel ##Schüssel
###Schlüsselupdate ###Schlüsselupdate

View File

@ -9,7 +9,7 @@ dest=/var/run/foodoor-keys
if [ ! -e "${dest}/.git/config" ] if [ ! -e "${dest}/.git/config" ]
then then
#echo "Repo does not exist, trying to clone..." #echo "Repo does not exist, trying to clone..."
( cd /var/run && git clone --quiet --single-branch --depth=1 luftschleuse@nordstern.chaospott.de:/home/luftschleuse/foodoor-keys "${dest}" ) ( cd /var/run && git clone --quiet --single-branch --depth=1 ssh://git.chaospott.de/Chaospott/foodoor-keys.git "${dest}" )
else else
#echo "Repo exists, updating..." #echo "Repo exists, updating..."
( cd "${dest}" && git fetch --quiet && git merge --quiet origin/master master ) ( cd "${dest}" && git fetch --quiet && git merge --quiet origin/master master )