e27e2d30cc
* Install wget/curl in install_required_sw(), where all other required software is installed. * Fix and standardize exit. install_rally.sh used three different ways to stop execution: abort(); die(); and err() + exit. die() has a strange usage pattern, and there are several places that use a two-argument die() which happily waits for stdin forever. In other cases we had unique and exciting hacks to get around die()'s strangeness. This fixes all of those, and makes everything either use abort() or die() (correctly). * Fix inconsistent say()/echo usage. This eliminates the rarely-used say() function entirely. * Quoted things that need quoted. Some other minor changes recommended by shellcheck. Change-Id: I1a9d0b2ff5daba02998245d5c7e624f46bd2242a
33 lines
992 B
Bash
Executable File
33 lines
992 B
Bash
Executable File
#!/bin/sh -ex
|
|
#
|
|
# Copyright 2013: Mirantis Inc.
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
env
|
|
|
|
sudo ./install_rally.sh --system --yes
|
|
rally deployment list
|
|
|
|
sudo ./install_rally.sh --system --yes
|
|
rally deployment list
|
|
|
|
sudo ./install_rally.sh --yes -d /tmp/rallytest_root/
|
|
/tmp/rallytest_root/bin/rally deployment list
|
|
|
|
sudo rm -fr ~/.rally
|
|
|
|
./install_rally.sh --yes -d /tmp/rallytest_user
|
|
/tmp/rallytest_user/bin/rally deployment list
|