File tree Expand file tree Collapse file tree 4 files changed +61
-0
lines changed Expand file tree Collapse file tree 4 files changed +61
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ This will install Git on your machine!
30
30
| Nginx | Yes| Yes| Yes | Yes| Yes| No | https://installer.to/nginx |
31
31
| Fabric | No | No | No | No | No | Yes | https://installer.to/hlf |
32
32
| Docker | Yes| Yes| No | No | No | No | https://installer.to/docker |
33
+ | eksctl | No | No | No | No | No | Yes | https://installer.to/eksctl |
33
34
| cTop | No | No | No | No | No | Yes | https://installer.to/ctop |
34
35
| Hello | Yes| Yes| Yes | Yes| Yes| Yes | https://installer.to/hello |
35
36
| Python 3| Yes| Yes| Yes | Yes| Yes| No | https://installer.to/python3 |
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ installers = "apt,yum"
38
38
name = " Docker"
39
39
description = " Docker"
40
40
41
+ [eksctl ]
42
+ installers = " curl"
43
+ name = " eksctl"
44
+ description = " A simple CLI tool for creating clusters on EKS"
45
+
41
46
[ctop ]
42
47
installers = " curl"
43
48
name = " cTop"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ ;CURL_CMD=$(which curl);YUM_CMD=$(which yum);DNF_CMD=$(which dnf);APT_GET_CMD=$(which apt-get);PACMAN_CMD=$(which pacman);APK_CMD=$(which apk);GIT_CMD=$(which git);SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='[0m';RED='[0;31m';GREEN='[0;32m';YELLOW='[0;33m';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;if [ ! -z $CURL_CMD ]; then;info "Downloading eksctl";$SUDO curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp;info "Setting up at /usr/local/bin/eksctl";$SUDO mv /tmp/eksctl /usr/local/bin;$SUDO rm /tmp/eksctl;;else echo "Couldn't install package";exit 1;;fi;
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ CURL_CMD=$( which curl)
4
+ YUM_CMD=$( which yum)
5
+ DNF_CMD=$( which dnf)
6
+ APT_GET_CMD=$( which apt-get)
7
+ PACMAN_CMD=$( which pacman)
8
+ APK_CMD=$( which apk)
9
+ GIT_CMD=$( which git)
10
+ SUDO_CMD=$( which sudo)
11
+
12
+ USER=" $( id -un 2> /dev/null || true) "
13
+ SUDO=' '
14
+ if [ " $USER " != ' root' ]; then
15
+ if [ ! -z $SUDO_CMD ]; then
16
+ SUDO=' sudo'
17
+ else
18
+ cat >&2 << -'EOF '
19
+ Error: this installer needs the ability to run commands as root.
20
+ We are unable to find "sudo". Make sure its available to make this happen
21
+ EOF
22
+ exit 1
23
+ fi
24
+ fi
25
+
26
+ RESET=' [0m'
27
+ RED=' [0;31m'
28
+ GREEN=' [0;32m'
29
+ YELLOW=' [0;33m'
30
+ log () {
31
+ echo " [` date " +%Y.%m.%d-%H:%M:%S%Z" ` ]$1 $2 "
32
+ }
33
+ info () {
34
+ log " $GREEN INFO$RESET $1 "
35
+ }
36
+ warn () {
37
+ log " $YELLOW WARN$RESET $1 "
38
+ }
39
+ error () {
40
+ log " $RED ERROR$RESET $1 "
41
+ }
42
+
43
+ if [ ! -z $CURL_CMD ]; then
44
+ info " Downloading eksctl"
45
+ $SUDO curl --silent --location " https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$( uname -s) _amd64.tar.gz" | tar xz -C /tmp
46
+ info " Setting up at /usr/local/bin/eksctl"
47
+ $SUDO mv /tmp/eksctl /usr/local/bin
48
+ $SUDO rm /tmp/eksctl
49
+
50
+ else
51
+ echo " Couldn't install package"
52
+ exit 1;
53
+ fi
You can’t perform that action at this time.
0 commit comments