add v0.0.11

This commit is contained in:
2023-11-03 16:21:47 -07:00
parent 408e9202a3
commit dc809bc4c1
5 changed files with 244 additions and 29 deletions

View File

@@ -24,27 +24,26 @@ esac
if [ ! -f /etc/grlx/sprout ]; then
mkdir -p /etc/grlx
if [ -z "$FARMER_INTERFACE" ]; then
echo "FARMER_INTERFACE is not set. Please set it to the domain or IP of your farmer."
if [ -z "$FARMERINTERFACE" ]; then
echo "FARMERINTERFACE is not set. Please set it to the domain or IP of your farmer."
exit 1
fi
if [ -z "$FARMER_API_PORT" ]; then
FARMER_PORT=5405
if [ -z "$FARMERAPIPORT" ]; then
FARMERPORT=5405
fi
if [ -z "$FARMER_BUS_PORT" ]; then
FARMER_PORT=5406
if [ -z "$FARMERBUSPORT" ]; then
FARMERPORT=5406
fi
cat << EOF > /etc/grlx/sprout
farmerinterface: $FARMER_INTERFACE
farmerbusport: $FARMER_BUS_PORT
farmerapiport: $FARMER_API_PORT
farmerurl: https://$FARMER_INTERFACE:$FARMER_PORT
farmerinterface: $FARMERINTERFACE
farmerbusport: $FARMERBUSPORT
farmerapiport: $FARMERAPIPORT
EOF
fi
chmod 600 /etc/grlx/sprout
curl -s "https://artifacts.grlx.dev/linux/${machine_arch}/v0.0.10/sprout" > /usr/local/bin/grlx-sprout
curl -s "https://artifacts.grlx.dev/linux/${machine_arch}/v0.0.11/sprout" > /usr/local/bin/grlx-sprout
chmod +x /usr/local/bin/grlx-sprout
cat << EOF > /etc/systemd/system/grlx-sprout.service