File: postinst

package info (click to toggle)
sanoid 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: perl: 3,166; sh: 590; makefile: 25
file content (6 lines) | stat: -rwxr-xr-x 288 bytes parent folder | download
1
2
3
4
5
6
#!/bin/bash

# remove old cache file
[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt || true
[ -f /var/cache/sanoid/snapshots.txt ] && rm /var/cache/sanoid/snapshots.txt || true
[ -f /var/cache/sanoid/datasets.txt ] && rm /var/cache/sanoid/datasets.txt || true