livekit / livekit-cli

Command line interface to LiveKit
https://docs.livekit.io
Other
185 stars 59 forks source link

installetion script is not working #327

Closed kaushiksahu18 closed 1 month ago

kaushiksahu18 commented 1 month ago

Describe the bug installetion script is not working

Server i use EndeavourOS Linux x86_64

To Reproduce i have use this "curl -sSL https://get.livekit.io/cli | bash"

Logs

curl -sSL https://get.livekit.io/cli | bash
sudo is required to install to /usr/local/bin
Installing livekit-cli 1.4.3
Downloading from https://github.com/livekit/livekit-cli/releases/download/v1.4.3/livekit-cli_1.4.3_linux_amd64.tar.gz...
[sudo] password for kaushiksahu18:
mv: cannot create regular file '/usr/local/bin/livekit-cli': Permission denied
esskayesss commented 1 month ago

same as #324

https://github.com/livekit/livekit-cli/blob/04e9aa0ddcd11ef47cb84fd1a5f4b662209f4c81/install-cli.sh#L104-L106

line 106 should be ${SUDO_PREFIX} mv .... additionally, line 104 doesn't need the SUDO because the extraction is in a filepath in /tmp. haven't looked too deeply in the script and can only test it tomorrow. i'll open a PR if i can fix the issue.

for now, you can just run

curl -sSL https://get.livekit.io/cli -o install-cli.sh
sed -i '106s/^/\${SUDO_PREFIX} /' install-cli.sh
bash ./install-cli.sh

again, i cannot test it right now, there might be an error.