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 4c6429c6fb0c7b828ad8d464f9e2dcb797df5c03
parent 5e10c68ca5152a7e3a4ac4ece866db6972394d13
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Thu, 19 Nov 2020 11:01:57 +0100

slapd and nslcd run-files: chmod +x & cleanup

Diffstat:
Mtemplates/generic/root/etc/sv/nslcd/run | 2+-
Mtemplates/generic/root/etc/sv/slapd/run | 7+++++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/templates/generic/root/etc/sv/nslcd/run b/templates/generic/root/etc/sv/nslcd/run @@ -2,7 +2,7 @@ . /etc/runit/common -make_dir "/run/" nslcd nslcd nslcd +make_dir "/run/" "$SVNAME" nslcd nslcd echo Starting $SVNAME... exec nslcd -d diff --git a/templates/generic/root/etc/sv/slapd/run b/templates/generic/root/etc/sv/slapd/run @@ -2,7 +2,10 @@ . /etc/runit/common -make_dir "/run/" slapd openldap openldap +USER="openldap" +GROUP="openldap" + +make_dir "/run/" "slapd" $USER $GROUP echo Starting $SVNAME... -exec slapd -d 0 -g openldap -u openldap +exec slapd -d 0 -g $GROUP -u $USER