Do not pad day of month with zero for calculating node.

This commit is contained in:
Benoit.S « Benpro » 2014-02-08 20:59:17 +01:00 committed by Benoît SÉRIE
parent 7e51e1a236
commit 3e7fef7501

View file

@ -14,4 +14,4 @@ MAIL_TO="jdoe@example.com"
LOG="/var/log/evobackup.log"
# Used when you have more than one backup server.
NODE=$(( $(date +%d) % 2 ))
NODE=$(( $(date +%-d) % 2 ))