Setting up my first hosted ziti

I am working through this…

https://openziti.github.io/ziti/quickstarts/network/hosted.html

I got stuck with the following error

quickinstall.sh: line 6: syntax error near unexpected token `(’

# now download, source, and execute the expressInstall function
source <(wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh); expressInstall

The following is the contents of quickinstall.sh

set -a
source .ziti/quickstart/config/config.env
set +a

source <(wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh); expressInstall

Hi @markamind, are you able to wget the file without trying to source it? Basically just do: this one line in two:

wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh
expressInstall

I run / test this script using ubuntu but there are shell variants on linux that sometimes cause issues like this.

I saw you mention oracle cloud on another issue. Is this with Oracle linux? Maybe there is a problem with their image which doesn’t like doing this in one line. Or - can you tell me exactly what variant of linux you’re running? If I can reproduce the issue we can fix it for everyone.

Try doing it as two separate steps first thoguh

Also do you know what bash version you have? I found this SO post that indicates bash 3 doesn’t with with process substitution . I wonder if you have bash 3.2. If so, doing it with two steps should work…

1 Like

Awesome… I will test this out tomorrow and keep you updated.

I find this so exciting. I never ever imagined I would be doing networking in a million years…

2 Likes

I got it to work with some bash magic.. I don't write much bash.. but are starting to get into it now.. lots of small steps

Step 1.. download the file

wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh

Step 2.. call the function within the file (I did not know this was possible :slight_smile: )

you need to use the && command.. (never stop learning)

. ./ziti-cli-functions.sh && expressInstall

1 Like

My first Ziti controller installed :slight_smile:

2 Likes