X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Flhc-remorque%2Fconfigure.sh;h=61f70df1cf0f4f88571b2cb3a02015ac962135be;hb=b27661cf8e40872543f86a00922d18573ef83612;hp=67c6d37b4cd5668832d9770d63e225a9f95ea6c9;hpb=b7595a000cae850e0702938336ce116376bc7d67;p=lhc%2Fateliers.git diff --git a/etc/sv/lhc-remorque/configure.sh b/etc/sv/lhc-remorque/configure.sh index 67c6d37..61f70df 100644 --- a/etc/sv/lhc-remorque/configure.sh +++ b/etc/sv/lhc-remorque/configure.sh @@ -1,17 +1,11 @@ -#!/bin/sh -eux +rule www_configure + +home=~www-data/"$sv" + rule adduser fcgi-"$sv" \ --disabled-login \ --disabled-password \ --group \ - --home /home/www/pub/"$sv" \ + --home "$home" \ --shell /bin/false \ --system -rule adduser log-fcgi-"$sv" \ - --disabled-login \ - --disabled-password \ - --group \ - --home /home/www/log/spawn-fcgi/"$sv" \ - --shell /bin/false \ - --system -sudo install -d -m 770 -o log-fcgi-"$sv" -g log-fcgi-"$sv" \ - /home/www/log/"$sv"/spawn-fcgi