From f282ddb35bc9c01e24053998263d2fe4c931afac Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 22 May 2015 13:26:52 +0200 Subject: Fix drop $ from arithmetic variables. --- localnotifypwexp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/localnotifypwexp b/localnotifypwexp index 3f24c33..a485b12 100755 --- a/localnotifypwexp +++ b/localnotifypwexp @@ -63,7 +63,7 @@ epochseconds="+%s" dateformat="" # blank for GNU when epochseconds="+%s" secondsperday=86400 # set this to 1 for no division -today=$(($($dateprog $useUTC $epochseconds $dateformat)/$secondsperday)) +today=$(($($dateprog $useUTC $epochseconds $dateformat)/secondsperday)) oIFS=$IFS # ### END SETUP ### @@ -73,7 +73,7 @@ oIFS=$IFS # use single quotes around templates, backslash escapes and substitutions # will be evaluated upon output usersubjecttemplate='Your password is expiring soon' -userbodytemplate='Your password on $hostname expires in $(($expdate - $today)) days. +userbodytemplate='Your password on $hostname expires in $((expdate - today)) days. More help is available at http://support.$domainname/password' @@ -117,9 +117,9 @@ do lastchange=${usershadow[$last]} warndays=${usershadow[$warn]:-$warndefault} - expdate=$(($lastchange + $mustchange)) + expdate=$((lastchange + mustchange)) - threshhold=$(($today + $warndays + $weekmode)) + threshhold=$((today + warndays + weekmode)) if [[ $expdate -lt $threshhold ]]; then -- cgit v1.2.3 4c/B7CE82F6.2760%2525ronald@jones.dk/old?h=master'>treecommitdiff
path: root/tags/7b/4c/B7CE82F6.2760%25ronald@jones.dk/old
diff options
context:
space:
mode:
Diffstat (limited to 'tags/7b/4c/B7CE82F6.2760%25ronald@jones.dk/old')
-rw-r--r--tags/7b/4c/B7CE82F6.2760%25ronald@jones.dk/old0
1 files changed, 0 insertions, 0 deletions