Skip to content
Snippets Groups Projects
upd_0100.php 648 B
<?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(!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(!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');
	}

}