#!/bin/sh -eux
exec 2>&1
sv=${PWD#/etc/sv/}
-home=~www/pub/"$sv"
/usr/bin/sv -w 3 start sshd
-getent passwd fcgi-"$sv" >/dev/null ||
-adduser fcgi-"$sv" \
- --disabled-login \
- --disabled-password \
- --group \
- --home "$home" \
- --shell /bin/false \
- --system
-
install -d -m 1771 -o root -g root \
/run/spawn-fcgi