Skip to content

Commit b0bdaed

Browse files
author
Marius Burkard
committed
- removed left code for php cgi
1 parent e8e420a commit b0bdaed

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

server/lib/classes/plugin_webserver_base.inc.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,24 +1826,6 @@ public function eventDelete($event_name, $data, $server_type = 'apache') {
18261826
$this->php_fpm_pool_delete($data, $web_config, $server_type);
18271827
}
18281828

1829-
//remove the php cgi starter script if available
1830-
if ($data['old']['php'] == 'cgi') {
1831-
// TODO: fetch the date from the server-settings
1832-
$web_config['cgi_starter_path'] = $web_config['website_basedir'].'/php-cgi-scripts/[system_user]/';
1833-
1834-
$cgi_starter_path = str_replace('[system_user]', $data['old']['system_user'], $web_config['cgi_starter_path']);
1835-
if($data['old']['type'] == 'vhost') {
1836-
if (is_dir($cgi_starter_path)) {
1837-
exec('rm -rf '.$cgi_starter_path);
1838-
}
1839-
} else {
1840-
$cgi_starter_script = $cgi_starter_path.'php-cgi-starter_web'.$data['old']['domain_id'];
1841-
if (file_exists($cgi_starter_script)) {
1842-
exec('rm -f '.$cgi_starter_script);
1843-
}
1844-
}
1845-
}
1846-
18471829
$app->log('Removing website: '.$docroot, LOGLEVEL_DEBUG);
18481830

18491831
// Delete the symlinks for the sites

0 commit comments

Comments
 (0)