New repo; Howto config
This commit is contained in:
parent
7326d8f70d
commit
8856ba9cf4
13
README.md
13
README.md
@ -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
|
||||||
|
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user