Skip to content

Commit

Permalink
fix: try again at pi image
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 23, 2024
1 parent 7eb59d8 commit f18021a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pi-image/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,21 @@ 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

# 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
Expand Down

0 comments on commit f18021a

Please sign in to comment.