diff --git a/assets/setup/install.sh b/assets/setup/install.sh index dfb0a84b..57d64266 100755 --- a/assets/setup/install.sh +++ b/assets/setup/install.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -GEM_CACHE_DIR="${SETUP_DIR}/cache" +GEM_CACHE_DIR="${SETUP_DIR}/cache.${GITLAB_VERSION}" # add golang1.5 ppa apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B0B8B106A0CA2F79FBB616DBA65E2E5D742A38EE @@ -78,7 +78,7 @@ sudo -HEu ${GITLAB_USER} cp config/initializers/smtp_settings.rb.sample config/i # install gems required by gitlab, use local cache if available if [[ -d ${GEM_CACHE_DIR} ]]; then - mv ${GEM_CACHE_DIR} vendor/ + mv ${GEM_CACHE_DIR} vendor/cache chown -R ${GITLAB_USER}:${GITLAB_USER} vendor/cache fi sudo -HEu ${GITLAB_USER} bundle install -j$(nproc) --deployment --without development test aws