From d3309d311f26b029753f98f67212c76c073a0937 Mon Sep 17 00:00:00 2001 From: Christoph Klaffl Date: Wed, 22 Jan 2020 17:22:44 +0100 Subject: [PATCH] post install script for debian package to remove old unused snapshot cache file --- packages/debian/postinst | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 packages/debian/postinst diff --git a/packages/debian/postinst b/packages/debian/postinst new file mode 100755 index 0000000..d23e6bc --- /dev/null +++ b/packages/debian/postinst @@ -0,0 +1,4 @@ +#!/bin/bash + +# remove old cache file +[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt