Skip to content

Commit

Permalink
Added missing install script
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Jan 25, 2024
1 parent f21400a commit bd8af33
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Need to have a version number in order to install a specific DSF version...
if [[ -z "$1" ]]; then
echo "Missing version"
exit 1
fi
VERSION=`echo $1 | sed 's/-/~/g'`

# Determine the corresponding RRF package version. There may be multiple RRF packages per DSF version
RRF_VERSION=`apt-cache show reprapfirmware | grep "Version:" | cut -d ' ' -f 2 | grep "$VERSION" | head -n 1`
if [[ -z "$RRF_VERSION" ]]; then
echo "Could not find RepRapFirmware package for version $1. Invalid version or wrong package feed?"
exit 1
fi

# Install given version
echo "Installing DSF $VERSION and RRF $RRF_VERSION"
apt-get install -y --allow-downgrades -qq -o Dpkg::Options::="--force-confold" duetsoftwareframework=$VERSION duetcontrolserver=$VERSION duetwebserver=$VERSION duetpluginservice=$VERSION duettools=$VERSION duetruntime=$VERSION duetwebcontrol=$VERSION duetpimanagementplugin=$VERSION reprapfirmware=$RRF_VERSION < /dev/null
echo "Done!"

0 comments on commit bd8af33

Please sign in to comment.