From 1805b2baa46bdbc68717432fdf24594ad7c72ffd Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 28 Oct 2015 19:28:58 +0100 Subject: contrib/log-wrapper: Add simple log-wrapper syslog-ng executes the program destinations as root, so we need a simple wrapper to use the correct user. --- Makefile | 1 + contrib/log-wrapper | 4 ++++ 2 files changed, 5 insertions(+) create mode 100755 contrib/log-wrapper diff --git a/Makefile b/Makefile index a82841e..6d53072 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,5 @@ install: install --mode=755 server.pl $(BINDIR)/server install --mode=755 log.pl $(BINDIR)/log install --mode=755 stats.pl $(BINDIR)/stats + install --mode=755 contrib/log-wrapper $(BINDIR)/log-wrapper install --mode=755 contrib/server.init $(INITDIR)/server diff --git a/contrib/log-wrapper b/contrib/log-wrapper new file mode 100755 index 0000000..f9d9de1 --- /dev/null +++ b/contrib/log-wrapper @@ -0,0 +1,4 @@ +#!/bin/sh + +USER="spamd-stats" +exec su "$USER" -c "~/bin/log" -- cgit v1.2.3-1-g7c22