Skip to content

Commit 8928411

Browse files
author
Till Brehm
committed
Update apache2_plugin.inc.php
1 parent 97d1dce commit 8928411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

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

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

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

0 commit comments

Comments
 (0)