-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupd_0100.php
More file actions
17 lines (12 loc) · 834 Bytes
/
upd_0100.php
File metadata and controls
17 lines (12 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
if(!defined('INSTALLER_RUN')) die('Patch update file access violation.');
class upd_0100 extends installer_patch_update {
public function onAfterSQL() {
global $inst;
// Remove old server plugins, unless they are currently enabled
if(file_exists('/usr/local/ispconfig/server/plugins-available/nginx_reverseproxy_plugin.inc.php') && !is_link('/usr/local/ispconfig/server/plugins-enabled/nginx_reverseproxy_plugin.inc.php'))
unlink('/usr/local/ispconfig/server/plugins-available/nginx_reverseproxy_plugin.inc.php');
if(file_exists('/usr/local/ispconfig/server/plugins-available/bind_dlz_plugin.inc.php') && !is_link('/usr/local/ispconfig/server/plugins-enabled/bind_dlz_plugin.inc.php'))
unlink('/usr/local/ispconfig/server/plugins-available/bind_dlz_plugin.inc.php');
}
}