fix: fixes error in ustreamer install

Error in func build_apps and clone_ustreamer
leads to cloned repo and build ustreamer as root.

This leads to failing make buildclean and build

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2022-11-04 12:07:31 +01:00
parent d4a2c08152
commit 046641af04
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -330,6 +330,7 @@ clone_ustreamer() {
if [[ -d bin/ustreamer ]]; then
rm -rf bin/ustreamer
fi
sudo -u "${BASE_USER}" \
git clone "${CROWSNEST_USTREAMER_REPO_SHIP}" \
-b "${CROWSNEST_USTREAMER_REPO_BRANCH}" bin/ustreamer
## Buster workaround
@ -347,7 +348,7 @@ build_apps() {
echo -e "Cloning ustreamer repository ..."
clone_ustreamer
pushd bin > /dev/null
make all
sudo -u "${BASE_USER}" make all
popd > /dev/null
}