Skip to content

Instantly share code, notes, and snippets.

@rsheasby
Last active November 2, 2021 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsheasby/19d821696b337c919770af988b54d6e9 to your computer and use it in GitHub Desktop.
Save rsheasby/19d821696b337c919770af988b54d6e9 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
sudo apt update
sudo apt install -y debhelper libcapture-tiny-perl libconfig-inifiles-perl pv lzop mbuffer build-essential git
cd /tmp
git clone https://github.com/jimsalterjrs/sanoid.git
cd sanoid
git checkout $(git tag | grep "^v" | tail -n 1)
ln -s packages/debian .
dpkg-buildpackage -uc -us
sudo apt install ../sanoid_*_all.deb
echo If you want to enable the sanoid timer, run \"sudo systemctl enable --now sanoid.timer\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment