zzz_evobackup: fix arithmetics
09 % 2 is invalid
This commit is contained in:
parent
7c04155fe8
commit
f7b8e96547
|
@ -40,7 +40,7 @@ MAIL=jdoe@example.com
|
|||
SYSTEM=$(uname | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
# Variable to choose different backup server with date
|
||||
NODE=$(($(date +%d) % 2))
|
||||
NODE=$(($(date +%e) % 2))
|
||||
|
||||
# serveur address for rsync
|
||||
SRV="node$NODE.backup.example.com"
|
||||
|
|
Loading…
Reference in a new issue