3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[fix] sudo delete pools

This commit is contained in:
Ramil Valitov 2020-06-29 20:20:17 +03:00
parent 08d217b00c
commit 5e0161a004
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -34,7 +34,7 @@ setupPool() {
PHP_VERSION=$(echo "$POOL_DIR" | grep -oP "(\d\.\d)")
#Delete all active pools except www.conf:
find "$POOL_DIR" -name '*.conf' -type f -not -name 'www.conf' -exec rm -rf {} \;
sudo find "$POOL_DIR" -name '*.conf' -type f -not -name 'www.conf' -exec rm -rf {} \;
#Add status path
sudo sed -i 's#;pm.status_path.*#pm.status_path = /php-fpm-status#' "$POOL_FILE"