test: fix date use in 010-nts system test

Avoid using nonportable -d option of date.
This commit is contained in:
Miroslav Lichvar 2021-04-29 14:45:30 +02:00
parent 1d03908646
commit 8c1e16711d

View file

@ -14,8 +14,8 @@ cn = "chrony-nts-test"
dns_name = "chrony-nts-test" dns_name = "chrony-nts-test"
ip_address = "$server" ip_address = "$server"
serial = 001 serial = 001
activation_date = "$(date -d '1 year ago' +'%Y-%m-%d') 00:00:00 UTC" activation_date = "$[$(date '+%Y') - 1]-01-01 00:00:00 UTC"
expiration_date = "$(date -d '1 year' +'%Y-%m-%d') 00:00:00 UTC" expiration_date = "$[$(date '+%Y') + 2]-01-01 00:00:00 UTC"
signing_key signing_key
encryption_key encryption_key
EOF EOF