Merge pull request #491 from phreaker0/fix-postinst

fix debian postinst in the case of non existing legacy cache file
This commit is contained in:
Jim Salter 2020-01-31 07:45:36 -05:00 committed by GitHub
commit d30e7c0140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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