Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Update bash scripts to default to Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Belchy06 committed Oct 19, 2023
1 parent 91cf6a6 commit d15049f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ realm="PixelStreaming"
process=""
if [ "$(uname)" == "Darwin" ]; then
process="${BASH_LOCATION}/coturn/bin/turnserver"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
process="turnserver"
else
echo 'Incorrect host OS for use with Start_TURNServer.sh'
exit -1
process="turnserver"
fi
arguments="-c turnserver.conf --allowed-peer-ip=$localip -p ${turnport} -r $realm -X $publicip -E $localip -L $localip --no-cli --no-tls --no-dtls --pidfile /var/run/turnserver.pid -f -a -v -u ${turnusername}:${turnpassword}"

Expand Down
7 changes: 2 additions & 5 deletions SignallingWebServer/platform_scripts/bash/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,8 @@ if [ "$(uname)" == "Darwin" ]; then
echo 'Incompatible architecture. Only x86_64 and ARM64 are supported'
exit -1
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
node_url="https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.gz"
else
echo 'Incorrect OS for use with setup.sh'
exit -1
node_url="https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.gz"
fi
check_and_install "node" "$node_version" "$NODE_VERSION" "curl $node_url --output node.tar.xz
&& tar -xf node.tar.xz
Expand Down Expand Up @@ -179,7 +176,7 @@ if [ "$(uname)" == "Darwin" ]; then
tar -xf turnserver.zip -C "${BASH_LOCATION}/coturn"
rm turnserver.zip
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
else
#command #dep_name #get_version_string #version_min #install command
coturn_version=$(if command -v turnserver &> /dev/null; then echo 1; else echo 0; fi)
if [ $coturn_version -eq 0 ]; then
Expand Down

0 comments on commit d15049f

Please sign in to comment.