[node-patches] Change in ovirt-node[master]: run restorecon in runlevel 1 when setting passwords
jboggs at redhat.com
jboggs at redhat.com
Wed Dec 12 03:04:39 UTC 2012
Joey Boggs has uploaded a new change for review.
Change subject: run restorecon in runlevel 1 when setting passwords
......................................................................
run restorecon in runlevel 1 when setting passwords
rhbz#885709
Change-Id: I330af3ffcdca60cf32f0f2142d35c9d45875ab8a
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/ovirt-config-password
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/88/9988/1
diff --git a/scripts/ovirt-config-password b/scripts/ovirt-config-password
index b313906..d6c5025 100755
--- a/scripts/ovirt-config-password
+++ b/scripts/ovirt-config-password
@@ -42,6 +42,11 @@
# prompt user
# Set the password for the root user first
+ runlevel|grep -q ^1
+ rc=$?
+ if [ $rc -eq 0 ]; then
+ restorecon -R /etc &> /dev/null
+ fi
cat <<EOP | python
import sys
--
To view, visit http://gerrit.ovirt.org/9988
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I330af3ffcdca60cf32f0f2142d35c9d45875ab8a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>
More information about the node-patches
mailing list