Last active
March 4, 2017 14:31
-
-
Save re3turn/762c976ef172a3cddf804420473fddfd to your computer and use it in GitHub Desktop.
docker-gitlab日本語化
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
SCRIPT_DIR=$(cd $(dirname $0) && pwd) | |
VER=v8.16.6 | |
PATCH_VER=${1:=${VER}} | |
if [ ! -e /usr/bin/patch ]; then | |
apt-get update | |
apt-get install patch | |
fi | |
wget https://raw.githubusercontent.com/ksoichiro/gitlab-i18n-patch/master/patches/${PATCH_VER}/app_ja.patch | |
cd /home/git/gitlab | |
patch -p1 < ${SCRIPT_DIR}/app_ja.patch | |
rm -rf public/assets | |
export PATH=/home/git/gitlab/bin:$PATH | |
bundle exec rake assets:precompile RAILS_ENV=production | |
rm -f ${SCRIPT_DIR}/app_ja.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment