Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit d5d2564

Browse files
committed
[master] Add title
1 parent ba6697a commit d5d2564

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

hyper-bootstrap-xen.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# wget -qO- http://hypercontainer.io/install | bash
66
# curl -sSL http://hypercontainer.io/install | bash
77
# install from local
8-
# ./bootstrap.sh
8+
# ./hyper-bootstrap-xen.sh
99
BASE_DIR=$(cd "$(dirname "$0")"; pwd); cd ${BASE_DIR}
1010
SLEEP_SEC=10
1111
set -e
@@ -53,6 +53,7 @@ ERR_UNKNOWN_MSG_TYPE=98
5353
ERR_UNKNOWN=99
5454
########## Function Definition ##########
5555
main() {
56+
show_message info "Welcome to Install Community Edition of Hyper...\n"
5657
check_user
5758
check_deps
5859
check_hyper_before_install

hyper-bootstrap.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# wget -qO- http://hypercontainer.io/install | bash
66
# curl -sSL http://hypercontainer.io/install | bash
77
# install from local
8-
# ./bootstrap.sh
8+
# ./hyper-bootstrap.sh
99
BASE_DIR=$(cd "$(dirname "$0")"; pwd); cd ${BASE_DIR}
1010
SLEEP_SEC=10
1111
set -e
@@ -61,6 +61,7 @@ ERR_UNKNOWN_MSG_TYPE=98
6161
ERR_UNKNOWN=99
6262
########## Function Definition ##########
6363
main() {
64+
show_message info "Welcome to Install Community Edition of Hyper...\n"
6465
check_user
6566
check_os_platform
6667
check_os_distro

hypercli-bootstrap.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# Description: This script is used to install hyper cli and hyperd
33
# Usage:
44
# install from remote
5-
# wget -qO- https://cli.hyper.sh/install | bash
6-
# curl -sSL https://cli.hyper.sh/install | bash
5+
# wget -qO- https://hyper.sh/install | bash
6+
# curl -sSL https://hyper.sh/install | bash
77
# install from local
8-
# ./bootstrap.sh
8+
# ./hypercli-bootstrap.sh
99
WORK_DIR=$(pwd)
1010
BASE_DIR=$(cd "$(dirname "$0")"; pwd); cd ${BASE_DIR}
1111
SLEEP_SEC=10
@@ -63,6 +63,7 @@ show_message() {
6363
}
6464
########## Main Function Definition ##########
6565
main() {
66+
show_message info "Welcome to Install hyper client for HYPER_...\n"
6667
check_os_type
6768
fetch_hypercli
6869
extract_hypercli
@@ -141,7 +142,7 @@ fetch_hypercli() {
141142
MD5_LOCAL=$(md5 ${TGT_FILE} | awk '{print $NF}')
142143
;;
143144
esac
144-
if [ ${MD5_REMOTE} != ${MD5_LOCAL} ];then
145+
if [[ ${MD5_REMOTE} != ${MD5_LOCAL} ]];then
145146
echo "required checksum: ${MD5_REMOTE}, but downloaded package is ${MD5_LOCAL}"
146147
show_message error "${ERR_PKG_MD5_ERROR[1]}" && exit "${ERR_PKG_MD5_ERROR[0]}"
147148
fi
@@ -150,17 +151,20 @@ fetch_hypercli() {
150151
set -e
151152
}
152153
extract_hypercli() {
154+
cd ${WORK_DIR}
153155
case "${OS_TYPE}" in
154156
Linux) PKG_FILE="${PKG_FILE_LINUX}"
155157
${BASH_C} "tar xzf ${BOOTSTRAP_DIR}/${PKG_FILE} -C ${WORK_DIR}"
158+
md5sum hyper | awk '{printf "MD5 (hyper) = %s\n", $1}'
156159
;;
157160
Darwin) PKG_FILE="${PKG_FILE_MACOSX}"
158161
${BASH_C} "unzip -o ${BOOTSTRAP_DIR}/${PKG_FILE} -d ${WORK_DIR}"
162+
md5 hyper
159163
;;
160164
*) show_message error "${ERR_NOT_SUPPORT_OS[1]}" && exit "${ERR_NOT_SUPPORT_OS[0]}"
161165
;;
162166
esac
163-
chmod +x ${WORK_DIR}/hyper
167+
chmod +x hyper
164168
cat <<EOF
165169
hypercli '${WORK_DIR}/hyper' is ready
166170
@@ -173,6 +177,7 @@ QuickStart:
173177
./hyper ps -l
174178
175179
For more information, please go to https://docs.hyper.sh
180+
For Community Edition of Hyper, please go to http://hypercontainer.io
176181
EOF
177182
}
178183

0 commit comments

Comments
 (0)