move old files to old directory

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
2022-05-04 09:46:41 +02:00
parent 3d12f83d26
commit b536c883de
28 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
# library made for sourcing - just to prepare git auth environment
function prepareGitAuth(){
# usage
# $1 - config directory
confdir=$1/auth
[ -d $confdir ] || mkdir $confdir
[ -d $confdir/ssh ] || mkdir $confdir/ssh
chmod 0700 $confdir
# git configure http authenticator
git config --global credential.helper "store --file=$confdir/git-credentials"
# git configure ssh auth
git config --global core.sshcommand "ssh -i $confdir/ssh/identity -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes -q"
}