#!/bin/bash if [ -z ${WIKINDX_DB_HOST} ]; then echo "required parameter WIKINDX_DB_HOST missing" exit 255 fi if [ -z ${WIKINDX_DB} ]; then echo "required parameter WIKINDX_DB missing" exit 255 fi if [ -z ${WIKINDX_DB_USER} ]; then echo "required parameter WIKINDX_DB_USER missing" exit 255 fi if [ -z ${WIKINDX_DB_PASSWORD} ]; then echo "required parameter WIKINDX_DB_PASSWORD missing" exit 255 fi # create the wikindx config file # shellcheck disable=SC2005 # shellcheck disable=SC2006 echo "`cat <> /var/www/html/config.php; /usr/sbin/php-fpm82 --nodaemonize --fpm-config /etc/php/8.2/fpm/pool/wikindx_pool.conf