From e8c6459ceb7686913c001ecda127be42d630e698 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 7 Mar 2019 00:38:52 -0500 Subject: [PATCH] e2scrub: install the crontab file in /etc/cron.d w/o the .cron extension Signed-off-by: Theodore Ts'o --- scrub/Makefile.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scrub/Makefile.in b/scrub/Makefile.in index efabe76..2f6d630 100644 --- a/scrub/Makefile.in +++ b/scrub/Makefile.in @@ -112,10 +112,10 @@ install-udev: done install-crond: - $(Q) for i in $(CRONTABS); do \ - $(ES) " INSTALL $(CROND_DIR)/$$i"; \ - $(INSTALL_DATA) $$i $(DESTDIR)$(CROND_DIR)/$$i; \ - done + $(Q) if test -n "$(CRONTABS)" ; then \ + $(ES) " INSTALL $(CROND_DIR)/e2scrub_all" ; \ + $(INSTALL_DATA) e2scrub_all.cron $(DESTDIR)$(CROND_DIR)/e2scrub_all ; \ + fi install-libprogs: $(LIBPROGS) $(Q) for i in $(LIBPROGS); do \ @@ -152,9 +152,9 @@ uninstall-udev: done uninstall-crond: - for i in $(CRONTABS); do \ - $(RM) -f $(DESTDIR)$(CROND_DIR)/$$i; \ - done + if test -n "$(CRONTABS)" ; then \ + $(RM) -f $(DESTDIR)$(CROND_DIR)/e2scrub_all ; \ + fi uninstall-libprogs: for i in $(LIBPROGS); do \ -- 1.8.3.1