Skip to content

Commit f6552d9

Browse files
authored
Merge pull request #72 from leopardslab/update-readme-md-and-installers-toml-69
Update installer scripts, README.md & installers.toml for #69
2 parents 94dd0ea + 99c1cc3 commit f6552d9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

installers/hlf/installer.min.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/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;
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)