summaryrefslogtreecommitdiff
path: root/localnotifypwexp
diff options
context:
space:
mode:
Diffstat (limited to 'localnotifypwexp')
-rwxr-xr-xlocalnotifypwexp7
1 files changed, 4 insertions, 3 deletions
diff --git a/localnotifypwexp b/localnotifypwexp
index 2ea686e..8722c17 100755
--- a/localnotifypwexp
+++ b/localnotifypwexp
@@ -28,6 +28,7 @@ admins="root postmaster"
declare -r aged=21 # minimum days after expiration before admins are emailed, set to 0 for "always"
hostname=$(hostname --fqdn)
+domainname=$(hostname --domain)
# /etc/shadow is system dependent
shadowfile="/etc/shadow"
@@ -78,9 +79,9 @@ oIFS=$IFS
usersubjecttemplate='Your password is expiring soon'
userbodytemplate='Your password on $hostname expires in $(($expdate - $today)) days.
-Please contact the IT department by email at \"helpdesk\" or at
-extension 555 if you have any questions. Help is also available at
-http://helpdesk.example.com/password'
+Please contact the $domain IT department by email or phone
+if you have any questions. Help is also available at
+http://support.$domain/password'
adminsubjecttemplate='User Password Expired: $user@$hostname'
adminbodytemplate='The password for user $user on $hostname expired $age days ago.