Alon Bar-Lev has uploaded a new change for review. Change subject: setup: test effective user id instead of 'root' user name ......................................................................
setup: test effective user id instead of 'root' user name Root user or every other alias will have UID=0, better test for UID and not user name. In bash we have $UID, $EUID. In POSIX sh we have $(id -u). In Python, there is no need to convert uid to name in order to test if we run under root. Change-Id: Iad84de5277439b2a1aac7b5985954c1ad8ffca80 Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M backend/manager/dbscripts/engine-db-install.sh M packaging/fedora/setup/engine-cleanup.py M packaging/fedora/setup/engine-upgrade.py 3 files changed, 5 insertions(+), 5 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/51/6051/1 -- To view, visit http://gerrit.ovirt.org/6051 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iad84de5277439b2a1aac7b5985954c1ad8ffca80 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches