From 301e2326db4ee22ddf13de659b20104be1943f2c Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 26 Feb 2014 09:38:13 +0530 Subject: [PATCH] fix: do not use append mode while editing cron jobs. --- resources/gitlab | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/gitlab b/resources/gitlab index 1bdd682e..95894f92 100755 --- a/resources/gitlab +++ b/resources/gitlab @@ -259,22 +259,17 @@ gitlab_start () { sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production # setup cron job for automatic backups - set +e - crontab -l -u git > /tmp/cron.git - set -e case "${GITLAB_BACKUPS}" in daily) - cat >> /tmp/cron.git < /tmp/cron.git <> /tmp/cron.git < /tmp/cron.git <