Skip to content

Commit 1549abc

Browse files
author
Till Brehm
committed
Merge branch '6577-move-unmaintained-old-plugins-to-docs' into 'develop'
Resolve "Move unmaintained old plugins to docs" Closes #6577 See merge request ispconfig/ispconfig3!1805
2 parents a539cd4 + a63caeb commit 1549abc

File tree

4 files changed

+18
-834
lines changed

4 files changed

+18
-834
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_0100.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)