Use arithmetic expansion in system tests (followup)

These are manual edits in addition of the automated changes from the
previous commit.
This commit is contained in:
Tom Krizek
2023-06-22 14:09:22 +02:00
parent 4d42bdc245
commit 1436025e20
16 changed files with 33 additions and 31 deletions

View File

@@ -22,8 +22,8 @@ KRB5_KDC_PROFILE=${PWD}/krb5kdc
export KRB5_KDC_PROFILE
now=`date +%s`
lifetime=`expr 2147483647 - $now`
lifetime=`expr $lifetime / 3600 / 24 - 30`
lifetime=$((2147483647 - now))
lifetime=$((lifetime / 3600 / 24 - 30))
cat << EOF > "${KRB5_CONFIG}"
[libdefaults]