Last active
November 2, 2021 09:57
-
-
Save rsheasby/19d821696b337c919770af988b54d6e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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