From e62aa06667ecfc2ad7d64d34788d62c8524b87cd Mon Sep 17 00:00:00 2001 From: jsuto Date: Wed, 28 Aug 2024 11:10:42 +0200 Subject: [PATCH] import.sh shall honor install prefix (#174) Signed-off-by: Janos SUTO --- util/Makefile.in | 1 + util/{import.sh => import.sh.in} | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) rename util/{import.sh => import.sh.in} (81%) diff --git a/util/Makefile.in b/util/Makefile.in index 622689ff..3fca66f3 100644 --- a/util/Makefile.in +++ b/util/Makefile.in @@ -29,6 +29,7 @@ all: sed -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/indexer.delta.sh.in > $(srcdir)/indexer.delta.sh sed -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/indexer.main.sh.in > $(srcdir)/indexer.main.sh sed -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/indexer.attachment.sh.in > $(srcdir)/indexer.attachment.sh + sed -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/import.sh.in > $(srcdir)/import.sh install: $(INSTALL) -m 0755 $(srcdir)/automated-search.php $(DESTDIR)$(libexecdir)/piler diff --git a/util/import.sh b/util/import.sh.in similarity index 81% rename from util/import.sh rename to util/import.sh.in index efff682e..7be4a03f 100755 --- a/util/import.sh +++ b/util/import.sh.in @@ -9,4 +9,4 @@ pushd /var/piler/imap [[ "${FLOCKER}" != "$0" ]] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" -imapfetch.py -i +imapfetch.py -i -c SYSCONFDIR/piler/piler.conf