|
1 | 1 | #!/bin/bash |
2 | 2 |
|
3 | | -SWIFTBOX_VERSION="0.9.4" |
| 3 | +SWIFTBOX_VERSION="0.9.5" |
4 | 4 | INSTALL_DIR="/usr/bin" |
5 | 5 |
|
6 | 6 | if [ `id -u` = 0 ] |
|
24 | 24 | SYSTEM_NAME="centos" |
25 | 25 | SYSTEM_NICENAME="CentOS/RHEL" |
26 | 26 | SYSTEM_VERSION=`cat /etc/redhat-release | sed -r 's/.* ([0-9]+)\..*/\1/'` |
27 | | - if ! hash curl 2> /dev/null |
| 27 | + if ! hash curl 2> /dev/null || ! hash wget 2> /dev/null |
28 | 28 | then |
29 | | - $SUDO_FLAG yum install curl -q -y |
| 29 | + $SUDO_FLAG yum install curl wget -q -y |
30 | 30 | fi |
31 | 31 | else |
32 | 32 | UNSUPPORTED_SYSTEM=$REDHAT_RELEASE |
|
39 | 39 | SYSTEM_NAME="ubuntu" |
40 | 40 | SYSTEM_NICENAME="Ubuntu" |
41 | 41 | SYSTEM_VERSION=$VERSION_ID |
42 | | - if ! hash curl 2> /dev/null || ! hash realpath 2> /dev/null |
| 42 | + if ! hash curl 2> /dev/null || ! hash realpath 2> /dev/null || ! hash wget 2> /dev/null |
43 | 43 | then |
44 | 44 | $SUDO_FLAG apt-get update -q=2 |
45 | | - $SUDO_FLAG apt-get install coreutils curl -q=2 |
| 45 | + $SUDO_FLAG apt-get install coreutils curl wget -q=2 |
46 | 46 | fi |
47 | 47 | else |
48 | 48 | UNSUPPORTED_SYSTEM="$NAME $VERSION" |
@@ -114,11 +114,11 @@ init-env() { |
114 | 114 | enable-swiftbox |
115 | 115 | case $SYSTEM_NAME in |
116 | 116 | ubuntu) |
117 | | - $SUDO_FLAG apt-get install gnupg git libpython2.7 binutils tzdata libxml2 clang libicu-dev wget pkg-config zlib1g-dev libedit2 libsqlite3-0 -y |
| 117 | + $SUDO_FLAG apt-get install gnupg git libpython2.7 binutils tzdata libxml2 clang libicu-dev pkg-config zlib1g-dev libedit2 libsqlite3-0 -y |
118 | 118 | ;; |
119 | 119 | centos) |
120 | 120 | $SUDO_FLAG yum install epel-release -y |
121 | | - $SUDO_FLAG yum install --enablerepo=PowerTools curl wget binutils gcc git glibc-static libbsd-devel libedit libedit-devel libicu-devel libstdc++-static pkg-config python2 sqlite -y |
| 121 | + $SUDO_FLAG yum install --enablerepo=PowerTools binutils gcc git glibc-static libbsd-devel libedit libedit-devel libicu-devel libstdc++-static pkg-config python2 sqlite -y |
122 | 122 | ;; |
123 | 123 | esac |
124 | 124 | wget -q -O - https://swift.org/keys/all-keys.asc | $SUDO_FLAG gpg --import - |
|
0 commit comments