Skip to content

Commit 8fab0bf

Browse files
authored
Update installer scripts, README.md & installers.toml
1 parent dbaf9f4 commit 8fab0bf

File tree

4 files changed

+33
-32
lines changed

4 files changed

+33
-32
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ This will install Git on your machine!
2222
<!-- beginning of tools list -->
2323
| Tool |Apt|Yum|Packman|APK|DNF|CURL| URL |
2424
|--------|---|---|-------|---|---|----|----------------------------|
25-
|Git |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/git |
26-
|Hello |Yes|Yes|Yes |Yes|Yes|Yes |https://installer.to/hello |
2725
|NodeJS |Yes|Yes|No |Yes|Yes|No |https://installer.to/node |
28-
|Python 3|Yes|Yes|Yes |Yes|Yes|No |https://installer.to/python3|
29-
|Nginx |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/nginx |
26+
|Git |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/git |
3027
|gCloud |No |No |No |No |No |Yes |https://installer.to/gcloud |
31-
|Docker |Yes|Yes|No |No |No |No |https://installer.to/docker |
28+
|Nginx |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/nginx |
3229
|Fabric |No |No |No |No |No |Yes |https://installer.to/hlf |
30+
|Docker |Yes|Yes|No |No |No |No |https://installer.to/docker |
31+
|Hello |Yes|Yes|Yes |Yes|Yes|Yes |https://installer.to/hello |
32+
|Python 3|Yes|Yes|Yes |Yes|Yes|No |https://installer.to/python3|
3333

3434
<!-- end of tools list -->

installers.toml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1+
[node]
2+
installers = "apt,yum,dnf,apk"
3+
name = "NodeJS"
4+
15
[git]
2-
name = "Git"
36
installers = "apt,yum,pacman,dnf,apk"
7+
name = "Git"
48
description = "Git SVM"
59

6-
[hello]
7-
name = "Hello"
8-
installers = "apt,yum,pacman,apk,dnf,curl"
9-
description = "This is just a sample tool"
10-
11-
[node]
12-
name = "NodeJS"
13-
installers = "apt,yum,dnf,apk"
14-
15-
[python3]
16-
name = "Python 3"
17-
description = "Python 3"
18-
installers = "apt,yum,pacman,apk,dnf"
10+
[gcloud]
11+
installers = "curl"
12+
name = "gCloud"
13+
description = "CLI tool of GCP"
1914

2015
[nginx]
16+
installers = "apt,yum,pacman,apk,dnf"
2117
name = "Nginx"
2218
description = "Nginx server"
23-
installers = "apt,yum,pacman,apk,dnf"
2419

25-
[gcloud]
26-
name = "gCloud"
27-
description = "CLI tool of GCP"
20+
[hlf]
2821
installers = "curl"
22+
name = "Fabric"
23+
description = "Hyperledger Fabric"
2924

3025
[docker]
26+
installers = "apt,yum"
3127
name = "Docker"
3228
description = "Docker"
33-
installers = "apt,yum"
3429

35-
[hlf]
36-
name = "Fabric"
37-
description = "Hyperledger Fabric"
38-
installers = "curl"
30+
[hello]
31+
installers = "apt,yum,pacman,apk,dnf,curl"
32+
name = "Hello"
33+
description = "This is just a sample tool"
34+
35+
[python3]
36+
installers = "apt,yum,pacman,apk,dnf"
37+
name = "Python 3"
38+
description = "Python 3"

installers/hlf/installer.min.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
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='';RED='';GREEN='';YELLOW='';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;if ! command -v docker;then;warn "Docker could not be found";curl https://installer.to/docker | bash;else info "Docker found";fi;;info "Downloading Fabric........";curl -sSL http://bit.ly/2ysbOFE -o bootstrap.sh;chmod 755 ./bootstrap.sh;$SUDO bash ./bootstrap.sh;;$SUDO cp ./fabric-samples/bin/* /usr/local/bin;;else echo "Couldn't install package";exit 1;;fi;

installers/hlf/installer.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,19 @@ error () {
4343
if [ ! -z $CURL_CMD ]; then
4444
if ! command -v docker
4545
then
46-
warn "docker could not be found"
46+
warn "Docker could not be found"
4747
curl https://installer.to/docker | bash
4848
else
49-
info "docker found"
49+
info "Docker found"
5050
fi
5151

52-
info "downloading Fabric........"
52+
info "Downloading Fabric........"
5353
curl -sSL http://bit.ly/2ysbOFE -o bootstrap.sh
5454
chmod 755 ./bootstrap.sh
5555
$SUDO bash ./bootstrap.sh
5656

5757
$SUDO cp ./fabric-samples/bin/* /usr/local/bin
5858

59-
6059
else
6160
echo "Couldn't install package"
6261
exit 1;

0 commit comments

Comments
 (0)