Mike Burns
2011-Aug-08 18:14 UTC
[Ovirt-devel] [PATCH node] set admin password if rootpw provided
In the case where only rootpw is provided, default adminpw to the value of rootpw rhbz#727563 Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-early | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/ovirt-early b/scripts/ovirt-early index 568c987..fa24720 100755 --- a/scripts/ovirt-early +++ b/scripts/ovirt-early @@ -502,6 +502,9 @@ start_ovirt_early () { ;; rootpw=*) rootpw=${i#rootpw=} + if [ -z "$adminpw" ]; then + adminpw=$rootpw + fi ;; snmp_password=*) snmp_password=${i#snmp_password=} -- 1.7.6