Merge branch 'release/0.0.2'
This commit is contained in:
commit
eae3eed3e7
5 changed files with 10 additions and 10 deletions
|
@ -13,7 +13,7 @@ The simple tool for managing container servers
|
|||
## Installation
|
||||
|
||||
```shell script
|
||||
curl 'https://raw.githubusercontent.com/ldericher/kiwi-config/master/install.sh' | sh
|
||||
curl --proto '=https' --tlsv1.2 -sSf 'https://raw.githubusercontent.com/ldericher/kiwi-config/master/install.sh' | sh
|
||||
```
|
||||
|
||||
That script checks for the basic dependencies of the `kiwi` command, then downloads the main script and installs it to a location of your choice. Please consider installing `kiwi` into a directory inside your $PATH.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# kiwi-config instance configuration #
|
||||
######################################
|
||||
|
||||
version: '0.0.1'
|
||||
version: '0.0.2'
|
||||
|
||||
runtime:
|
||||
storage: /tmp/kiwi
|
||||
|
|
10
install.sh
10
install.sh
|
@ -35,7 +35,7 @@ valid="no"
|
|||
|
||||
while [ "${valid}" = "no" ]; do
|
||||
printf "Select installation directory [Default: '%s']: " "${install_dir_default}"
|
||||
read install_dir
|
||||
read install_dir </dev/tty || install_dir="${install_dir_default}"
|
||||
install_dir="${install_dir:-${install_dir_default}}"
|
||||
|
||||
# check
|
||||
|
@ -44,7 +44,7 @@ while [ "${valid}" = "no" ]; do
|
|||
|
||||
else
|
||||
printf "Install directory doesn't exist. Try creating? [Y|n] "
|
||||
read yesno
|
||||
read yesno </dev/tty || yesno="yes"
|
||||
if [ ! "${yesno}" = "N" ] || [ ! "${yesno}" = "n" ]; then
|
||||
|
||||
# check creation failure
|
||||
|
@ -66,13 +66,13 @@ printf "Installing into '%s' ... " "${install_dir}"
|
|||
uri="https://raw.githubusercontent.com/ldericher/kiwi-config/master/kiwi"
|
||||
tmp_file="$(mktemp)"
|
||||
|
||||
if ! curl -o "${tmp_file}" "${uri}" >/dev/null 2>/dev/null; then
|
||||
if ! curl --proto '=https' --tlsv1.2 --silent --fail --output "${tmp_file}" "${uri}" >/dev/null 2>/dev/null; then
|
||||
rm "${tmp_file}"
|
||||
echo "Download 'kiwi' failed!" >/dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! install -m 0755 "${tmp_file}" "${install_dir}/kiwi"; then
|
||||
if ! install -m 0755 "${tmp_file}" "${install_dir}/kiwi" >/dev/null 2>/dev/null; then
|
||||
rm "${tmp_file}"
|
||||
echo "Install 'kiwi' failed!" >/dev/stderr
|
||||
exit 1
|
||||
|
@ -82,4 +82,4 @@ rm "${tmp_file}"
|
|||
|
||||
# finalization
|
||||
echo "OK"
|
||||
exit 0
|
||||
exit 0
|
||||
|
|
4
kiwi
4
kiwi
|
@ -84,8 +84,8 @@ if [ ! -x "$(kiwi_executable)" ]; then
|
|||
cd "${tmpdir}" || :
|
||||
|
||||
# download archive
|
||||
curl -o "kiwi-config.zip" "${KIWI_REPO}/archive/${KIWI_VERSION}.zip"
|
||||
unzip "kiwi-config.zip"
|
||||
curl --proto '=https' --tlsv1.2 --silent --fail --location --output "kiwi-config.zip" "${KIWI_REPO}/archive/${KIWI_VERSION}.zip"
|
||||
unzip -qq "kiwi-config.zip"
|
||||
|
||||
# read archive version tag
|
||||
cd "kiwi-config-${KIWI_VERSION}" || :
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.0.1
|
||||
0.0.2
|
Loading…
Reference in a new issue