You do not want to be running svn passing credentials every time you need to pull a configuration file (or even a script if you practice bootstrapping ;-) so here is a POB recipe to remotely install credentials for SVN in a remote server:
#!/bin/bash -e # svn.sh svnrepo=$1 USAGE="Usage: `basename $0` <svnrepo>" if [ $# -ne "1" ] then echo $USAGE exit 1 fi echo -n "SVN User: " read svnuser echo -n "SVN Password: " read -s svnpassword echo apt-get -q -y install subversion || svn --version sed -i 's/# store-passwords = no/store-passwords = yes/g' .subversion/servers sed -i 's/# store-plaintext-passwords = no/store-plaintext-passwords = yes/g' .subversion/servers echo $svnpassword | svn info $svnrepo --username $svnuserNow you can run POB recipes that use svn repo remotely without the need to supply credentials.
No comments:
Post a Comment