I have been trying to install Wiki js with Apache 2
while executing command:
curl -sSo- https://wiki.js.org/install.sh | bash
got this error:
bash: line 1: Redirecting: command not found
How to avoid this and execute the command?
I have been trying to install Wiki js with Apache 2
while executing command:
curl -sSo- https://wiki.js.org/install.sh | bash
got this error:
bash: line 1: Redirecting: command not found
How to avoid this and execute the command?
Copyright © 2021 Jogjafile Inc.
curl https://wiki.js.org/install.sh
returns a301
status code with thelocation
header set tohttps://js.wiki/install.sh
and a response of'Redirecting to https://js.wiki/install.sh'
which is piped to bash causing the error.You can instruct
curl
to follow redirects using the-L
flag.Or you could fetch the script from https://js.wiki/install.sh and pipe it to
bash
.