From dedf35df85b8ab788bc5722cf16ec33ac9ff4220 Mon Sep 17 00:00:00 2001 From: Christoph Klaffl Date: Fri, 31 Jan 2020 09:13:18 +0100 Subject: [PATCH] fix debian postinst in the case of non existing legacy cache file --- packages/debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/debian/postinst b/packages/debian/postinst index d23e6bc..0d6142f 100755 --- a/packages/debian/postinst +++ b/packages/debian/postinst @@ -1,4 +1,4 @@ #!/bin/bash # remove old cache file -[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt +[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt || true