From 89b7b67a13ebb7965cc7f13ad0595e2194a2d34c Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 15:48:04 +0200 Subject: add sqmail-4.2.29a --- service/run_log | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 service/run_log (limited to 'service/run_log') diff --git a/service/run_log b/service/run_log new file mode 100755 index 0000000..25d0f62 --- /dev/null +++ b/service/run_log @@ -0,0 +1,13 @@ +#!/bin/sh +LOG_USER="qmaill" +LOG_GROUP=`id -g ${LOG_USER}` +LOG_NAME=`basename ${PWD%/log}` +LOG_DIR="/var/log/${LOG_NAME}" +if [ ! -d "${LOG_DIR}" ]; then + mkdir -p "${LOG_DIR}" + chown ${LOG_USER}:${LOG_GROUP} "${LOG_DIR}" + echo "Creating log dir for ${LOG_NAME}:" + ls -ld "${LOG_DIR}" +fi +exec 2>&1 +exec setuidgid ${LOG_USER} multilog t s2000000 "${LOG_DIR}" -- cgit v1.2.3