[xguest/f19] Fix to add random password on upgrade

Daniel J Walsh dwalsh at fedoraproject.org
Thu Aug 29 15:15:58 UTC 2013


commit 9958aec756a0429f70814f4eecb776078b3497e9
Author: Dan Walsh <dwalsh at redhat.com>
Date:   Thu Aug 29 11:15:39 2013 -0400

    Fix to add random password on upgrade

 xguest.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/xguest.spec b/xguest.spec
index e29efb5..90ce26a 100644
--- a/xguest.spec
+++ b/xguest.spec
@@ -1,7 +1,7 @@
 Summary: Creates xguest user as a locked down user 
 Name: xguest
 Version: 1.0.10
-Release: 30%{?dist}
+Release: 31%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 BuildArch: noarch
@@ -62,7 +62,13 @@ sed -i '/^xguest/d' /etc/security/sepermit.conf
 
 fi
 
+%triggerpostun -- xguest < 1.0.10-31
+head -1 /dev/urandom | passwd xguest --stdin
+
 %changelog
+* Thu Aug 29 2013 Dan Walsh <dwalsh at redhat.com> - 1.0.10-31
+- Fix to add random password on upgrade
+
 * Mon Aug 26 2013 Dan Walsh <dwalsh at redhat.com> - 1.0.10-30
 - Add random password so xguest will show up in gdm.
 


More information about the scm-commits mailing list