Explorar el Código

Fix for EHCP FTP Integration on Ubuntu 16.04+

own3mall hace 8 años
padre
commit
9f15b15d00
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ogp_agent.pl

+ 1 - 1
ogp_agent.pl

@@ -2806,7 +2806,7 @@ sub ftp_mgr
 				return "1;".encode_list(`php-cgi -f sites_ftp_user_update.php username=\'$login\' password=\'$password\'`);
 			}
 		}
-		elsif(defined($Cfg::Preferences{ftp_method}) && $Cfg::Preferences{ftp_method} eq "EHCP" && -e "/etc/init.d/ehcp")
+		elsif(defined($Cfg::Preferences{ftp_method}) && $Cfg::Preferences{ftp_method} eq "EHCP" && (-e "/etc/init.d/ehcp" || -e "/lib/systemd/system/ehcp.service" || -e "/etc/systemd/system/ehcp.service" ))
 		{
 			use constant EHCP_DIR => Path::Class::Dir->new(AGENT_RUN_DIR, 'EHCP');