Merge remote-tracking branch 'origin/pr/23'

* origin/pr/23:
  Allow passwordless login for user "user" (when using 'sudo xl console') for images being upgraded.
This commit is contained in:
Marek Marczykowski-Górecki 2015-09-28 12:09:12 +02:00
commit 54f8bb4169
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -70,6 +70,11 @@ if [ "$1" = "upgrade" ] ; then
fi fi
fi fi
fi fi
## Allow passwordless login for user "user" (when using 'sudo xl console').
## https://github.com/QubesOS/qubes-issues/issues/1130
if grep -q '^user:\!:' /etc/shadow ; then
passwd user -d >/dev/null || true
fi
fi fi
# dh_installdeb will replace this with shell code automatically # dh_installdeb will replace this with shell code automatically