https://github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md
/usr/share/gitolite/conf/example.gitolite.rc
## in progress below ##
# su - root # service mysql start # mysql_secure_installation
grant all privileges on gitlabhq_production.* to 'gitlabdb'@'localhost' identified by 'password' with grant option;
grant RELOAD, SELECT, SUPER, REPLICATION CLIENT on *.* to 'mysqlbackup'@'localhost' identified by 'password';
#not needed on centos: sudo -u git sh -c 'echo -e "PATH=\$PATH:/home/git/bin\nexport PATH" > /home/git/.profile' #not needed on centos: sudo -u git -i -H gl-system-install # in puppet: sudo cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub # in puppet: sudo chmod 777 /home/git/gitlab.pub sed -i 's/0077/0007/g' /usr/share/gitolite/conf/example.gitolite.rc sudo -u git sh -c 'echo -e "PATH=\$PATH:/home/git/bin\nexport PATH" >> /home/git/.profile' sudo -u git -H sh -c "gl-setup -q /home/git/gitlab.pub"
cd /home/git #sudo -u git -H mkdir bin #sudo -u git sh -c 'echo -e "PATH=\$PATH:/home/git/bin\nexport PATH" >> /home/git/.profile' #sudo -u git sh -c 'gitolite/install -ln /home/git/bin' sudo cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub sudo chmod 0444 /home/git/gitlab.pub sudo -u git -H sh -c "PATH=/home/git/bin:$PATH; gitolite setup -pk /home/git/gitlab.pub"
sudo -u gitlab -H git clone git@localhost:gitolite-admin.git /tmp/gitolite-admin
cd /home/gitlab sudo -H -u gitlab git clone git://github.com/gitlabhq/gitlabhq.git gitlab
cd /home/gitlab/gitlab sudo -u gitlab -H bundle install --without development test sqlite postgres --deployment
sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production
sudo cp ./lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive sudo chown git:git /home/git/.gitolite/hooks/common/post-receive
mkdir -p /home/git/share/gitolite/hooks/common ln -s /usr/share/gitolite/hooks/common/post-receive.mirrorpush /home/git/share/gitolite/hooks/common/post-receive
sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production
sudo -u gitlab bundle exec rails s -e production
cd /home/gitlab/gitlab sudo -u gitlab -H bundle exec rake gitlab:app:enable_automerge RAILS_ENV=production
login………admin@local.host password……5iveL!fe
new password: ccitr0cks
should probably install to /var/lib/gitlab, /var/lib/git
look at example.gitolite.rc for some config options:
$GL_LOGT=“$GL_ADMINDIR/logs/gitolite-%y-%m.log”;
Local Customizations