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:
parent
08d217b00c
commit
5e0161a004
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user