diff options
author | Theodore Ts'o <tytso@mit.edu> | 2019-07-21 13:13:24 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-07-21 14:42:19 -0400 |
commit | 0f886f42c2a34e560b0ddb03b6ddc2873123bd00 (patch) | |
tree | 726c2da840db5754d15d879ed9e05addf577e863 | |
parent | 74d377b35ef7919583c509f34ae2c997df034663 (diff) | |
download | e2fsprogs-0f886f42c2a34e560b0ddb03b6ddc2873123bd00.tar.gz |
e2scrub_all_cron: check to make sure e2scrub_all exists
Since e2scrub_all.cron is marked as a config file, it can hang around
after the package is removed, in which case e2scrub_all might not be
present. So check to make sure e2scrub_all exists before trying to
execute it.
Addresses-Debian-Bug: #932622
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Laurent Bigonville <bigon@debian.org>
-rw-r--r-- | scrub/e2scrub_all_cron.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scrub/e2scrub_all_cron.in b/scrub/e2scrub_all_cron.in index f9cff878c..fcfe415fe 100644 --- a/scrub/e2scrub_all_cron.in +++ b/scrub/e2scrub_all_cron.in @@ -62,6 +62,7 @@ on_ac_power() { return 0 } +test -e @root_sbindir@/e2scrub_all || exit 0 test -e /run/systemd/system && exit 0 on_ac_power || exit 0 |