diff options
author | Peter Palfrader <peter@palfrader.org> | 2016-02-02 18:58:12 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2016-02-02 18:58:12 +0100 |
commit | 92619e31a9feecf8290a83d5af59b6fa381b1c24 (patch) | |
tree | efe80fdcd670f21f0ce34c7e114f996344af43a1 /zshfunc | |
parent | ec2e65509e56d9134dfeec352bd0f3b35060fbe0 (diff) |
also use other statefile path
Diffstat (limited to 'zshfunc')
-rw-r--r-- | zshfunc/reinit-debian-samhain-one | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zshfunc/reinit-debian-samhain-one b/zshfunc/reinit-debian-samhain-one index 774dbfd..1d3d4a8 100644 --- a/zshfunc/reinit-debian-samhain-one +++ b/zshfunc/reinit-debian-samhain-one @@ -25,7 +25,7 @@ ssh $host -t ' [ "$ans" = "y" ] || exit; echo Updating samhain db... - if [ -e /var/state/samhain/samhain_file ] ; then + if [ -e /var/state/samhain/samhain_file ] || [ -e /var/lib/samhain/samhain_file ]; then sudo -H samhain --foreground -t update -p none -s none -l none -m none else sudo -H samhain --foreground -t init -p none -s none -l none -m none |