whenever gem is no longer used

This commit is contained in:
Sameer Naik 2015-10-23 12:23:35 +05:30
parent c4180b0a00
commit a2bf6d8cbd
2 changed files with 0 additions and 8 deletions

View File

@ -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

View File

@ -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