Speaking gitlab

Based on a ,, Larry Li Chinese version of Guide to modify

(In 9-0-stable-zh branch Example)

Source installation finished

Recommended according gitlab-ce source code doc / install / installation.md installation manual GitLab Chinese version of the content.

Relevant amendments only need to Clone the Source using the steps in https://gitlab.com/xhang/gitlab.gitthe warehouse and increase the current version of the suffix -zhcan be.

Further may be Install Gems step 6 and using https://gems.ruby-china.orga mirror to accelerate installed gems. Specific steps are as follows:

cd /home/git/gitlab
sudo -u git -H bundle config mirror.https://rubygems.org https://gems.ruby-china.org  # For PostgreSQL (note, the option says "without ... mysql") sudo -u git -H bundle install --deployment --without development test mysql aws kerberos  # Or if you use MySQL (note, the option says "without ... postgres") sudo -u git -H bundle install --deployment --without development test postgres aws kerberos

For the upgrade may be appropriate to follow a similar process update.md.

Omnibus installation finished

1. manually export the finished patch finished

Please use the official package installation or upgrade is complete, confirm the current version.

#获取当前版本
gitlab_version=$(sudo cat /opt/gitlab/embedded/service/gitlab-rails/VERSION)

Suppose the current version *** v11.3.3 ***, and confirm whether the library contains Chinese version of the Chinese version of the label (the end -zh).

If you have the same version of the finished label, the first clone warehouse locally.

# 克隆汉化版本库
git clone https://gitlab.com/xhang/gitlab.git
# 如果已经克隆过,则进行更新 git fetch

Speaking of labels and then compare the original label, export diff file with the patch.

# 导出11.3版本的汉化补丁
git diff origin/11-3-stable origin/11-3-stable-zh > /tmp/11.3.diff

After completion of the implementation of the current generation version of the patch file, such as 9.0.0-zh.diff

Import finished patch:

# 停止 gitlab
sudo gitlab-ctl stop
sudo patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 9.0.0-zh.diff

Make sure that no .rej file, you can restart GitLab.

sudo gitlab-ctl start

Perform a reconfiguration command

sudo gitlab-ctl reconfigure

If a problem occurs in the finished, reinstall GitLab ( note that the backup data ).


Second, the custom patches:

1. Only the administrator can delete the branch

Guess you like

Origin www.cnblogs.com/xy51/p/11403873.html