PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` #/usr/bin/sh #defualt svn dir for the executable anyway repo_name="TMDHosting SVN Repository for '$cpuser'" svn=/usr/bin/svn #check to see if the executable is present and exit if it is not if [ -f $svn ]; then echo "'$svn' is currently present on your system continue configuring the repository." else echo "Error: '$svn' is not installed !!" echo "Install Subversion before running this script again" exit 1 fi #get user/pass for the repository read -p "Enter cPanel username : " cpuser read -p "Enter cPanel password : " cppass #Creating the repository: svnadmin create /home/$cpuser/svn_repo #Setting up preferences echo "$cpuser = $cppass" >> /home/$cpuser/svn_repo/conf/passwd perl -p -i -e "s/# password-db = passwd/password-db = passwd/g" /home/$cpuser/svn_repo/conf/svnserve.conf perl -p -i -e "s/# realm = My First Repository/realm = TMDHosting Repository for $cpuser/g" /home/$cpuser/svn_repo/conf/svnserve.conf perl -p -i -e "s/# max-encryption = 256/max-encryption = 256/g" /home/$cpuser/svn_repo/conf/svnserve.conf #Starting repo echo "Starting repository for $cpuser" svnserve -d -r /home/$cpuser/svn_repo