entrypoint.sh: GITLAB_VERSION is already defined as an environment variable

This commit is contained in:
Sameer Naik 2015-07-01 19:31:55 +05:30
parent be49b29551
commit bba4b0bb13

View File

@ -712,7 +712,6 @@ appInit () {
# migrate database and compile the assets if the gitlab version or relative_url has changed.
CACHE_VERSION=
GITLAB_VERSION=$(cat VERSION)
[[ -f tmp/cache/VERSION ]] && CACHE_VERSION=$(cat tmp/cache/VERSION)
[[ -f tmp/cache/GITLAB_RELATIVE_URL_ROOT ]] && CACHE_GITLAB_RELATIVE_URL_ROOT=$(cat tmp/cache/GITLAB_RELATIVE_URL_ROOT)
if [[ ${GITLAB_VERSION} != ${CACHE_VERSION} || ${GITLAB_RELATIVE_URL_ROOT} != ${CACHE_GITLAB_RELATIVE_URL_ROOT} ]]; then