diff options
-rwxr-xr-x | scripts/vyatta-first-login-passwd.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/vyatta-first-login-passwd.sh b/scripts/vyatta-first-login-passwd.sh index bb37fcc8..11d4b85e 100755 --- a/scripts/vyatta-first-login-passwd.sh +++ b/scripts/vyatta-first-login-passwd.sh @@ -87,8 +87,6 @@ change_password() { # escape any slashes in resulting password local epwd=$(mkpasswd -H md5 "$pwd1" | sed 's:/:\\/:g') set system login user $user authentication plaintext-password "$pwd1" - commit - save } dpwd='"*"' @@ -112,5 +110,10 @@ for user in $($API listEffectiveNodes system login user); do fi fi done + +if $API sessionChanged; then + commit + save +fi eval $(exit_configure) sudo touch /opt/vyatta/etc/.nofirstpasswd |