mod_php_install.sh: change pidfile directory for debian versions buster and above.

This commit is contained in:
Christoph 2019-10-10 02:00:54 +02:00
parent 8ae069334c
commit 166031f410

View File

@ -760,8 +760,11 @@ if $WITH_PHP_FPM_SUPPORT && $WITH_MOD_PHP ; then
fi fi
fi fi
if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 9 ]] ; then
FPM_PID_FILE=/run/php-${PHP_MAIN_VERSION}-fpm.pid
else
FPM_PID_FILE=/var/run/php-${PHP_MAIN_VERSION}-fpm.pid FPM_PID_FILE=/var/run/php-${PHP_MAIN_VERSION}-fpm.pid
fi
FPM_SYSTEMD_FILE=/etc/systemd/system/php-${PHP_MAIN_VERSION}-fpm.service FPM_SYSTEMD_FILE=/etc/systemd/system/php-${PHP_MAIN_VERSION}-fpm.service
FPM_INIT_SCRIPT=/etc/init.d/php-${PHP_MAIN_VERSION}-fpm FPM_INIT_SCRIPT=/etc/init.d/php-${PHP_MAIN_VERSION}-fpm