dockerfiles/bookworm_php8/start-fpm.sh
Jan Dittberner d2dfa332d3 Work on Bookworm image nss-ldap
The classic libnss-ldap has been removed from Bookworm. nslcd is needed
to make the new libnss-ldapd work.
2024-02-10 11:39:58 +01:00

13 lines
278 B
Bash
Executable file

#!/bin/sh
set -e
sed "s/@user@/${FPM_USER}/g; s/@variant@/${FPM_VARIANT}/g" \
< /usr/local/etc/fpm-pool.conf.tmpl \
> "/etc/php/8.2/fpm/pool.d/${FPM_USER}.conf"
/etc/init.d/nslcd start
/etc/init.d/nullmailer start
mkdir -p /run/php
/usr/sbin/php-fpm8.2 --nodaemonize