diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-10-28 19:28:58 +0100 |
---|---|---|
committer | spamd-stats <spamd-stats@vm-mail.spline.inf.fu-berlin.de> | 2015-10-28 19:28:58 +0100 |
commit | 1805b2baa46bdbc68717432fdf24594ad7c72ffd (patch) | |
tree | 131c037acee0fff7fb608468bf2187e3e5e662cd /contrib | |
parent | 1731ff56f6337e28d5575954433d472804d46f45 (diff) | |
download | spamd-stats-1805b2baa46bdbc68717432fdf24594ad7c72ffd.tar.gz spamd-stats-1805b2baa46bdbc68717432fdf24594ad7c72ffd.tar.bz2 spamd-stats-1805b2baa46bdbc68717432fdf24594ad7c72ffd.zip |
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.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/log-wrapper | 4 |
1 files changed, 4 insertions, 0 deletions
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" |