Robin 52ff7f8f33 redo containers so they are fully rootless
no more annoying useradd/userdel!
allows read only containers!
smaller images!
doesn't crash on restart without recreating anymore! (oops)
configurable children / spare servers!
2022-01-07 22:32:49 +01:00

14 lines
293 B
Bash

#!/bin/sh
if [ -z "$(find /data -user "$(id -u)" -print -prune -o -prune)" ]; then
echo "/data is not owned by the correct user, we are uid $(id -u)"
exit 1
fi
cat > /tmp/fastcgi-pass.conf << EOL
set \$upstream "${PHP_FPM}";
fastcgi_pass \$upstream;
EOL
exec nginx -g "daemon off;"