autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 188f7c1e5f3ed97ae32d0eab1cb34905cbb5932a
parent 6e4af11a36690c1e96da8332d1ae19742a4a5951
Author: Morel BĂ©renger <berenger.morel@neutralite.org>
Date:   Thu, 14 Nov 2019 15:50:58 +0100

log folders now have root:adm 750 perms

Diffstat:
Metc/runit/2 | 2++
Metc/runit/log.run | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/etc/runit/2 b/etc/runit/2 @@ -6,6 +6,8 @@ SVDIR=/var/lib/runit/service busybox ip link set up lo mkdir -p /var/log/fsck $SVDIR +chown root:adm -R /var/log/fsck +chmod 750 -R /var/log/fsck for i in $(busybox ip -o link | cut -f2 -d: | grep -v '\<lo\>') do mkdir $SVDIR/$i/log -p diff --git a/etc/runit/log.run b/etc/runit/log.run @@ -3,5 +3,7 @@ SVLOG="$(basename $(dirname $(pwd)))" LOG_PATH="/var/log/$SVLOG" mkdir -p "$LOG_PATH" +chown root:adm -R "$LOG_PATH" +chmod 750 -R "$LOG_PATH" printf "Preparation done, starting %s/log.\n" $SVLOG exec svlogd -tt "$LOG_PATH"