Check path exists and create if not yet existing

This commit is contained in:
Daniel Winzen
2020-02-05 19:06:01 +01:00
parent 05cd5b0774
commit f814c67e3f

View File

@ -669,6 +669,9 @@ php_admin_value[sendmail_path] = '/usr/bin/php -r eval\(base64_decode\(\\\"JGM9Y
env[HOME]=/
";
}
if(!file_exists("/etc/php/$version/fpm/pool.d/$key/")){
mkdir("/etc/php/$version/fpm/pool.d/$key/", 0755, true);
}
file_put_contents("/etc/php/$version/fpm/pool.d/$key/www.conf", $php);
exec('systemctl restart '.escapeshellarg("php$version-fpm@$key"));
}