fix for ustreamer being changed to ustreamer.bin

This commit is contained in:
paukstelis
2024-02-28 14:50:42 -05:00
parent 9bc021e1bd
commit 1c77eada39
3 changed files with 7 additions and 4 deletions

View File

@@ -436,7 +436,7 @@ streamer_install() {
#install ustreamer
sudo -u $user git -C /home/$user clone --depth=1 https://github.com/pikvm/ustreamer
sudo -u $user make -C /home/$user/ustreamer > /dev/null
if [ -f "/home/$user/ustreamer/ustreamer" ]; then
if [ -f "/home/$user/ustreamer/ustreamer" ] || [ -f "/home/$user/ustreamer/ustreamer.bin" ]; then
echo "Streamer installed successfully"
else
echo "${red}WARNING! WARNING! WARNING!${white}"
@@ -445,6 +445,9 @@ streamer_install() {
streamer_install
fi
fi
if [ -f "/home/$user/ustreamer/ustreamer.bin" ]; then
sudo -u $user ln -s /home/$user/ustreamer/ustreamer.bin /home/$user/ustreamer/ustreamer
fi
echo 'streamer: ustreamer' >> /etc/octoprint_deploy
fi