1 2 3
/usr/sbin/groupadd -r -f _php_fpm 2>/dev/null ||: /usr/sbin/groupadd -r -f _webserver 2>/dev/null ||: /usr/sbin/useradd -r -g _php_fpm -d / -s /dev/null -n -c "PHP FastCGI Process Manager" _php_fpm >/dev/null 2>&1 ||:
1 2 3 4 5 6 7 8 9 10 11 12
if [ $1 = 0 ]; then if [ -x /usr/share/php/scripts/php_preun.sh ]; then export php_servicedir=/usr/share/php/8.1/service export php_sysconfdir=/etc/php/8.1 export php_extconf=/usr/share/php/8.1/extconf export sapiList=fpm-fcgi /usr/share/php/scripts/php_preun.sh fi find /etc/php/8.1/fpm-fcgi -type f -name '*.phpnew' -or -name '*.rpmnew' -delete fi /usr/sbin/preun_service php8.1-fpm