diff options
author | baigk <baiguoku@huawei.com> | 2015-12-27 21:23:33 +0800 |
---|---|---|
committer | baigk <baiguoku@huawei.com> | 2015-12-28 06:45:58 +0000 |
commit | 0ccb2434dc7bbafa2d5e60ec5777dd03b00bc258 (patch) | |
tree | 0b8f8b92c5f2e95f20e9d67b82ba30f1592db22d /deploy/prepare.sh | |
parent | c1f8ed8e836fb05eec5814e1a721352e64bc84d0 (diff) |
support redeploy
JIRA: COMPASS-216
Change-Id: Ide78ac82c1615259eeb7093c7a4485fbe493c6d9
Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'deploy/prepare.sh')
-rwxr-xr-x | deploy/prepare.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh index e8b2103e..f1aacd98 100755 --- a/deploy/prepare.sh +++ b/deploy/prepare.sh @@ -1,4 +1,16 @@ +function print_logo() +{ + if ! apt --installed list 2>/dev/null | grep "figlet" + then + sudo apt-get update -y + sudo apt-get install -y --force-yes figlet + fi + + figlet -ctf slant Compass Installer + set +x; sleep 2; set -x +} + function download_iso() { iso_name=`basename $ISO_URL` @@ -15,7 +27,6 @@ function download_iso() curl --connect-timeout 10 -o $WORK_DIR/cache/$iso_name $ISO_URL } - function prepare_env() { export PYTHONPATH=/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages sudo apt-get update -y |