Verified Commit 4a2ebb33 authored by Marco Marinello's avatar Marco Marinello
Browse files

Do not show dialog message if password never expires

refs #1
parent 4c588832
Pipeline #261 passed with stage
in 26 seconds
......@@ -25,6 +25,11 @@ LAST_CHANGE=$(expr $(date --date=$(passwd -S "$user"|cut -d" " -f3) +%s) / 86400
# Durata della password in giorni
SHADOWMAX=$(passwd -S "$user"|cut -d" " -f5)
# Do not show dialog message if password never expires
if [ "z$SHADOWMAX" = "z0" ]; then
exit 0
fi
# Data del prossimo cambio password forzato in giorni dal 1/01/1970
NEXT_CHANGE=$(expr $LAST_CHANGE + $SHADOWMAX)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment