/usr/lib/php/php7.0-fpm-checkconf is in php7.0-fpm 7.0.4-7ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/sh
set -e
CONFFILE=${1:-/etc/php/7.0/fpm/php-fpm.conf}
do_tmpfiles() {
local type path mode user group
[ "$1" != no ] && V=-v
TMPFILES=/usr/lib/tmpfiles.d/php7.0-fpm.conf
if [ -r "$TMPFILES" ]; then
while read type path mode user group age argument; do
if [ "$type" = "d" ]; then
mkdir $V -p "$path"
chmod $V "$mode" "$path"
chown $V "$user:$group" "$path"
fi
done < "$TMPFILES"
fi
}
do_tmpfiles no
errors=$(/usr/sbin/php-fpm7.0 --fpm-config "$CONFFILE" -t 2>&1 | grep "\[ERROR\]" || true);
if [ -n "$errors" ]; then
echo "Please fix your configuration file..."
echo $errors
exit 1
fi
exit 0
|