diff options
author | Amish | 2020-04-04 08:10:07 +0530 |
---|---|---|
committer | Amish | 2020-04-04 08:10:07 +0530 |
commit | 894564652bf88e71d0bfb27c3332f741d3c82635 (patch) | |
tree | d824062b67740c77f949b9163db8738e7cf74be0 /fangfrisch.install | |
parent | 36730fc7563cc35da639cbebb27a5786e8ed7c8a (diff) | |
download | aur-894564652bf88e71d0bfb27c3332f741d3c82635.tar.gz |
Update to 1.2.0
Diffstat (limited to 'fangfrisch.install')
-rw-r--r-- | fangfrisch.install | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fangfrisch.install b/fangfrisch.install index 8ff297b71de4..f387132623bd 100644 --- a/fangfrisch.install +++ b/fangfrisch.install @@ -1,6 +1,11 @@ post_install() { echo 'NOTE: Create database structure by running:' echo ' sudo -u clamav /usr/bin/fangfrisch --conf /etc/fangfrisch/fangfrisch.conf initdb' - echo + echo echo 'NOTE: Enable fangfrisch.timer for regular automatic updates.' } +post_upgrade() { + if (( $(vercmp $2 1.1.0) < 0 )); then + sudo -u clamav /usr/bin/fangfrisch --conf /etc/fangfrisch/fangfrisch.conf --force initdb + fi +} |