Skip to content

Commit 6c5656c

Browse files
committed
Fixes #6577 Move unmaintained old plugins to docs
1 parent eccdad3 commit 6c5656c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
File renamed without changes.

server/plugins-available/nginx_reverseproxy_plugin.inc.php renamed to docs/old_server_plugins/nginx_reverseproxy_plugin.inc.php

File renamed without changes.

install/patches/upd_0099.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
if(!defined('INSTALLER_RUN')) die('Patch update file access violation.');
4+
5+
class upd_0099 extends installer_patch_update {
6+
7+
public function onAfterSQL() {
8+
global $inst;
9+
10+
// Remove old server plugins, unless they are currently enabled
11+
if(!is_link('/usr/local/ispconfig/server/plugins-enabled/nginx_reverseproxy_plugin.inc.php'))
12+
unlink('/usr/local/ispconfig/server/plugins-available/nginx_reverseproxy_plugin.inc.php');
13+
if(!is_link('/usr/local/ispconfig/server/plugins-enabled/bind_dlz_plugin.inc.php'))
14+
unlink('/usr/local/ispconfig/server/plugins-available/bind_dlz_plugin.inc.php');
15+
16+
}
17+
18+
}

0 commit comments

Comments
 (0)