]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2scrub: install the crontab file in /etc/cron.d w/o the .cron extension
authorTheodore Ts'o <tytso@mit.edu>
Thu, 7 Mar 2019 05:38:52 +0000 (00:38 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 7 Mar 2019 05:40:14 +0000 (00:40 -0500)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/Makefile.in

index efabe762f57fe89640902d89091f90e10106d09a..2f6d630149c4ccf91027d5f65947d4c183b76b09 100644 (file)
@@ -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 \