X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fgit-daemon%2Fconfigure.sh;h=6d3f8aa09e2bd4df3c824dd1a008b57ad5f3e112;hp=5260f9169bf6c22f1dfac19ef7508c2ddf4be6be;hb=22f04b9fac14adc3d3fc98273ba126c3a51792c3;hpb=b7595a000cae850e0702938336ce116376bc7d67 diff --git a/etc/sv/git-daemon/configure.sh b/etc/sv/git-daemon/configure.sh index 5260f91..6d3f8aa 100644 --- a/etc/sv/git-daemon/configure.sh +++ b/etc/sv/git-daemon/configure.sh @@ -1,19 +1,21 @@ -#!/bin/sh -eux -rule adduser git-daemon\ +home=~git/daemon +rule adduser "$sv"\ --disabled-login \ --disabled-password \ --group \ - --home /home/git/pub \ + --home "$home" \ --shell /bin/false \ --system -rule adduser log-git-daemon\ - --disabled-login \ - --disabled-password \ - --group \ - --home /home/git/log/git-daemon \ - --shell /bin/false \ - --system -sudo adduser git-daemon git-data -sudo adduser log-git log-git-daemon -sudo install -d -m 770 -o log-"$sv" -g log-"$sv" \ - /home/git/log/"$sv" + +sudo install -d -m 770 -o git -g "$sv" \ + "$home" + +sudo adduser "$sv" git-data + +sudo ln -fns \ + ../pub \ + "$home"/git.$vm_domainname +sudo ln -fns \ + ../pub \ + "$home"/burette.$vm_domainname + # NOTE : rétro-compatibilité