From f18021aa25fd3b43807b92a2297c53994e6528f1 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Fri, 23 Feb 2024 19:44:47 +0000 Subject: [PATCH] fix: try again at pi image --- pi-image/install.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pi-image/install.sh b/pi-image/install.sh index be04f07..61512fc 100644 --- a/pi-image/install.sh +++ b/pi-image/install.sh @@ -45,6 +45,12 @@ curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir /opt/fnm export PATH=/opt/fnm:$PATH eval "`fnm env --shell bash`" +BUILD_BRANCH=beta +if [ "$SATELLITE_BRANCH" == "stable" ]; then + BUILD_BRANCH=stable + SATELLITE_BRANCH=main +fi + # clone the repository git clone https://github.com/bitfocus/companion-satellite.git -b $SATELLITE_BRANCH /usr/local/src/companion-satellite cd /usr/local/src/companion-satellite @@ -52,13 +58,8 @@ cd /usr/local/src/companion-satellite # configure git for future updates git config --global pull.rebase false - # run the update script -if [ "$SATELLITE_BRANCH" == "stable" ]; then - SATELLITE_BUILD=main ./pi-image/update.sh stable "$SATELLITE_BUILD" -else - ./pi-image/update.sh beta "$SATELLITE_BUILD" -fi +./pi-image/update.sh "$BUILD_BRANCH" "$SATELLITE_BUILD" # enable start on boot systemctl enable satellite