From 7c4c314df48618f34c92bfe9dda009e5a89228c4 Mon Sep 17 00:00:00 2001 From: Fabio Cigliano Date: Sun, 16 Sep 2018 07:59:51 +0200 Subject: [PATCH] crontab update fix + npm rebuild path fix (#166) --- bin/lamassu-update | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/lamassu-update b/bin/lamassu-update index 6fa42af7..aade1b50 100755 --- a/bin/lamassu-update +++ b/bin/lamassu-update @@ -60,9 +60,6 @@ supervisorctl update lamassu-server >> ${LOG_FILE} 2>&1 supervisorctl update lamassu-admin-server >> ${LOG_FILE} 2>&1 decho "updating backups conf" -tempfile=$(mktemp) -crontab -l >$tempfile -cat $tempfile | grep -v '@daily.*lamassu-backup-pg' | crontab - BACKUP_CMD=${NPM_BIN}/lamassu-backup-pg BACKUP_CRON="@daily $BACKUP_CMD > /dev/null" ( (crontab -l 2>/dev/null || echo -n "") | grep -v '@daily.*lamassu-backup-pg'; echo $BACKUP_CRON ) | crontab - >> $LOG_FILE 2>&1