Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d377b
)
e2scrub_all_cron: check to make sure e2scrub_all exists
author
Theodore Ts'o
<tytso@mit.edu>
Sun, 21 Jul 2019 17:13:24 +0000
(13:13 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 21 Jul 2019 18:42:19 +0000
(14:42 -0400)
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>
scrub/e2scrub_all_cron.in
patch
|
blob
|
history
diff --git
a/scrub/e2scrub_all_cron.in
b/scrub/e2scrub_all_cron.in
index
f9cff87
..
fcfe415
100644
(file)
--- 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