aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--defconfig6
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b06310c..bd614f0 100644
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ clean:
rm -f *.so *.o *~
install: all
- install -o root -g root -m 0660 $(LIBRARY_NAME) $(INSTALLDIR)/
+ install -o $(USER) -g $(GROUP) -m 0660 $(LIBRARY_NAME) $(INSTALLDIR)/
verify_config:
@if [ ! -r $(CONFIG) ]; then \
diff --git a/defconfig b/defconfig
index 02ea038..3891ca1 100644
--- a/defconfig
+++ b/defconfig
@@ -35,7 +35,11 @@ DOVECOT_VERSION=1.0
# install directory for 'make install'
-INSTALLDIR=/usr/lib/dovecot/modules/imap/
+# NB no need for a final '/'
+INSTALLDIR=/usr/lib/dovecot/modules/imap
+# The user and group for the installed plugin
+USER=root
+GROUP=root
# enable debugging to syslog or stderr
#DEBUG=stderr