From 046641af045c98ada6eb0c450c8e694765f3677a Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Fri, 4 Nov 2022 12:07:31 +0100 Subject: [PATCH] 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 --- tools/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 4944c34..91f2b3b 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -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 }