lamassu-update crontab path fix (#162)
This commit is contained in:
parent
4e287d1ecb
commit
46d73fadf9
1 changed files with 3 additions and 0 deletions
|
|
@ -60,6 +60,9 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue