#!/bin/bash# @author: ascetic85 <ascetic85@163.com># @date : 2012-08-12#apt-get install apache2 libapache-ruby1.8 apache2-mpm-worker libapache2-mod-pass enger git-core -yapt-get install redmine redmine-sqlite -yln -s /usr/share/redmine/public /var/www/redmine
echo "RailsEnv production" > /etc/apache2/conf.d/redmine.confecho "RailsBaseURI /redmine" >> /etc/apache2/conf.d/redmine.conf
/etc/init.d/apache2 restart
## account / password : admin/admin#
# mkdir -p ~/git_repo/test# cd ~/git_repo/test# git init# git update-server-info# ...# ;0)
# configure in redmine# login# put /home/xxoo/git_repo/test/.git in Settings#
# setup git server over http# http://www.jedi.be/blog/2009/05/06/8-ways-to-share-your-git-repository/# http://www.kernel.org/pub/software/scm/git/docs/howto/# setup-git-server-over-http.txt# Such as:# sudo mkdir /var/www/myrepo/# cd /var/ww/myrepo/# git init# git update-server-info# sudo choown -R www-data:www-data myrepo# sudo echo "LoadModule dav_module libexec/httpd/libdav.so" >># /etc/apache2/http d.conf# sudo a2enmod dav_fs# sudo a2enmod dav
# cat /etc/apache2/conf.d/git.conf#<Location /myrepo.git/.git># DAV on# AuthType Basic# AuthName "Git"# #AuthUserFile /etc/apache2/passwd.git# #Require valid-user#</Location>
# sudo /etc/init.d/apache2 restart
# git clone http://user@ip/myrepo/.git
# so . Task:# what about create public/{myrepo, linux, git, github}#