post install script for debian package to remove old unused snapshot cache file

This commit is contained in:
Christoph Klaffl 2020-01-22 17:22:44 +01:00
parent fee3739110
commit d3309d311f
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 4 additions and 0 deletions

4
packages/debian/postinst Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# remove old cache file
[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt