From c1b6eec770b885a9829e1f62bad5cc99389ca429 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl <14180120+JakobST1n@users.noreply.github.com> Date: Mon, 11 Oct 2021 17:52:02 +0200 Subject: :hammer: Remove userland script --- bin/luxcena-neo-cli.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/luxcena-neo-cli.sh b/bin/luxcena-neo-cli.sh index 483b273..4bc70cd 100755 --- a/bin/luxcena-neo-cli.sh +++ b/bin/luxcena-neo-cli.sh @@ -73,7 +73,8 @@ if [ "$action" == "update" ]; then #cd "$WDIR" # Fetch newest changes on branch - runuser -l 'lux-neo' -c "git -C $WDIR pull" || die + #runuser -l 'lux-neo' -c "git -C $WDIR pull" || die + git -C $WDIR pull # Add node repo curl -fsSL https://deb.nodesource.com/setup_14.x | bash - || die @@ -85,9 +86,12 @@ if [ "$action" == "update" ]; then pip3 install virtualenv || die # Create and configure python virtualenv - runuser -l 'lux-neo' -s /bin/bash -c "rm -rf $WDIR/NeoRuntime/Runtime/venv" || die - runuser -l 'lux-neo' -s /bin/bash -c "virtualenv -p /usr/bin/python3 $WDIR/NeoRuntime/Runtime/venv" || die - runuser -l 'lux-neo' -s /bin/bash -c "source $WDIR/NeoRuntime/Runtime/venv/bin/activate && pip install rpi_ws281x" || die + # runuser -l 'lux-neo' -s /bin/bash -c "rm -rf $WDIR/NeoRuntime/Runtime/venv" || die + rm -rf $WDIR/NeoRuntime/Runtime/venv || die + #runuser -l 'lux-neo' -s /bin/bash -c "virtualenv -p /usr/bin/python3 $WDIR/NeoRuntime/Runtime/venv" || die + virtualenv -p /usr/bin/python3 $WDIR/NeoRuntime/Runtime/venv || die + #runuser -l 'lux-neo' -s /bin/bash -c "source $WDIR/NeoRuntime/Runtime/venv/bin/activate && pip install rpi_ws281x" || die + source $WDIR/NeoRuntime/Runtime/venv/bin/activate && pip install rpi_ws281x || die # Build and run all npm scripts if [ "$2" != "skipNode" ]; then -- cgit v1.2.3