Преглед изворни кода

Fix for EHCP FTP Integration on Ubuntu 16.04+

own3mall пре 8 година
родитељ
комит
9f15b15d00
1 измењених фајлова са 1 додато и 1 уклоњено
  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');