1eafec533623ae7edeca8ef3601295b19fde3737
bernd First strike: list reposito...

bernd authored 12 years ago

modules/gitolite/data/initialize.sh     1) #!/bin/bash
modules/gitolite/data/initialize.sh     2) 
Bernd Wurst Erwarte das Datenverzeichni...

Bernd Wurst authored 5 years ago

modules/gitolite/scripts/initialize.sh  3) SCRIPTDIR="$(realpath "$(dirname ${0})")"
modules/gitolite/scripts/initialize.sh  4) WORKDIR="$(realpath "$SCRIPTDIR/../../../../gitolite-data")"
modules/gitolite/scripts/initialize.sh  5) 
modules/gitolite/scripts/initialize.sh  6) if [ -f "$WORKDIR/sshkey" ] ; then 
bernd First strike: list reposito...

bernd authored 12 years ago

modules/gitolite/data/initialize.sh     7)   echo 'SSH-Key exists!'
modules/gitolite/data/initialize.sh     8)   exit 1
modules/gitolite/data/initialize.sh     9) fi
modules/gitolite/data/initialize.sh    10) 
modules/gitolite/data/initialize.sh    11) ssh-keygen -t ecdsa -P '' -f "${WORKDIR}/sshkey"
modules/gitolite/data/initialize.sh    12) 
modules/gitolite/data/initialize.sh    13) echo 'Paste the following public key in gitolite-config and allow it to access the gitolite-admin repository!'
modules/gitolite/data/initialize.sh    14) echo '----------------------'
Bernd Wurst Erwarte das Datenverzeichni...

Bernd Wurst authored 5 years ago

modules/gitolite/scripts/initialize.sh 15) cat "$WORKDIR/sshkey.pub"
bernd First strike: list reposito...

bernd authored 12 years ago

modules/gitolite/data/initialize.sh    16) echo '----------------------'
modules/gitolite/data/initialize.sh    17) echo -n 'Press ENTER when ready...'
modules/gitolite/data/initialize.sh    18) read
modules/gitolite/data/initialize.sh    19) 
Bernd Wurst Erwarte das Datenverzeichni...

Bernd Wurst authored 5 years ago

modules/gitolite/scripts/initialize.sh 20) export GIT_SSH="$SCRIPTDIR/ssh-wrapper.sh"
modules/gitolite/scripts/initialize.sh 21) cd "$WORKDIR"