git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
1eafec5
Branches
Tags
master
ticket
webinterface.git
modules
gitolite
scripts
initialize.sh
Erwarte das Datenverzeichnis außerhalb des webroot (momentan hardcoded 4 Ebenen über der include-Datei)
Bernd Wurst
commited
1eafec5
at 2018-12-07 22:19:27
initialize.sh
Blame
History
Raw
#!/bin/bash SCRIPTDIR="$(realpath "$(dirname ${0})")" WORKDIR="$(realpath "$SCRIPTDIR/../../../../gitolite-data")" if [ -f "$WORKDIR/sshkey" ] ; then echo 'SSH-Key exists!' exit 1 fi ssh-keygen -t ecdsa -P '' -f "${WORKDIR}/sshkey" echo 'Paste the following public key in gitolite-config and allow it to access the gitolite-admin repository!' echo '----------------------' cat "$WORKDIR/sshkey.pub" echo '----------------------' echo -n 'Press ENTER when ready...' read export GIT_SSH="$SCRIPTDIR/ssh-wrapper.sh" cd "$WORKDIR" git clone "git@git.$(hostname -d):gitolite-admin" cd "gitolite-admin" echo 'Probing pull...' git pull echo 'Probing push...' git push echo 'Everything set up!'