Skip to content

Commit 9768d64

Browse files
author
Till Brehm
committed
Update nginx_plugin.inc.php
1 parent 8928411 commit 9768d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ function update($event_name, $data) {
18911891

18921892
//* Remove Stats-Folder when Statistics set to none
18931893
if($data['new']['stats_type'] == '' && ($data['new']['type'] == 'vhost' || $data['new']['type'] == 'vhostsubdomain' || $data['new']['type'] == 'vhostalias')) {
1894-
exec('rm -rf '.$data['new']['document_root'].'/web/stats');
1894+
$app->file->removeDirectory($data['new']['document_root'].'/web/stats');
18951895
}
18961896

18971897
$this->php_fpm_pool_update($data, $web_config, $pool_dir, $pool_name, $socket_dir, $web_folder);

0 commit comments

Comments
 (0)