Skip to content

Commit 890da25

Browse files
committed
Fix warning from upd_0100.php during update #6894
1 parent 1fc5923 commit 890da25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/patches/upd_0100.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ public function onAfterSQL() {
88
global $inst;
99

1010
// Remove old server plugins, unless they are currently enabled
11-
if(!is_link('/usr/local/ispconfig/server/plugins-enabled/nginx_reverseproxy_plugin.inc.php'))
11+
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'))
1212
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'))
13+
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'))
1414
unlink('/usr/local/ispconfig/server/plugins-available/bind_dlz_plugin.inc.php');
1515
}
1616

0 commit comments

Comments
 (0)