mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
whenever gem is no longer used
This commit is contained in:
parent
c4180b0a00
commit
a2bf6d8cbd
@ -83,10 +83,6 @@ if [[ -d ${GEM_CACHE_DIR} ]]; then
|
||||
fi
|
||||
sudo -HEu ${GITLAB_USER} bundle install -j$(nproc) --deployment --without development test aws
|
||||
|
||||
# GitLab 8.1.0 dropped whenever from their Gemfile
|
||||
# https://github.com/gitlabhq/gitlabhq/commit/6f79b5336fb9ac011dd19d5720b8bfda8b6fa53a
|
||||
gem install whenever
|
||||
|
||||
# make sure everything in ${GITLAB_HOME} is owned by the git user
|
||||
chown -R ${GITLAB_USER}:${GITLAB_USER} ${GITLAB_HOME}/
|
||||
|
||||
@ -94,9 +90,6 @@ chown -R ${GITLAB_USER}:${GITLAB_USER} ${GITLAB_HOME}/
|
||||
echo "Compiling assets. Please be patient, this could take a while..."
|
||||
sudo -HEu ${GITLAB_USER} bundle exec rake assets:clean assets:precompile >/dev/null 2>&1
|
||||
|
||||
# install schedules cronjob
|
||||
sudo -HEu ${GITLAB_USER} whenever -w
|
||||
|
||||
# symlink log -> ${GITLAB_LOG_DIR}/gitlab
|
||||
rm -rf log
|
||||
ln -sf ${GITLAB_LOG_DIR}/gitlab log
|
||||
|
||||
@ -941,7 +941,6 @@ appInit () {
|
||||
case ${GITLAB_BACKUPS} in
|
||||
daily|weekly|monthly)
|
||||
read hour min <<< ${GITLAB_BACKUP_TIME//[:]/ }
|
||||
crontab -u ${GITLAB_USER} -l > /tmp/cron.${GITLAB_USER}
|
||||
case ${GITLAB_BACKUPS} in
|
||||
daily)
|
||||
sudo -HEu ${GITLAB_USER} cat >> /tmp/cron.${GITLAB_USER} <<EOF
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user