@name 独立项目的项目信息 @author lkq 2021-08-27
(self, get=None, domain=None)
| 997 | return public.returnMsg(False, '类型错误') |
| 998 | |
| 999 | def pendent_tomcat_info(self, get=None, domain=None): |
| 1000 | ''' |
| 1001 | @name 独立项目的项目信息 |
| 1002 | @author lkq 2021-08-27 |
| 1003 | ''' |
| 1004 | if get: domain = get.domain.strip() |
| 1005 | tmp = {} |
| 1006 | tmp_path = self.__site_path + '' + domain + '/conf/server.xml' |
| 1007 | if os.path.exists(tmp_path): |
| 1008 | if not self.Initialization2('7', domain): |
| 1009 | tmp["port"] = False |
| 1010 | else: |
| 1011 | tmp["port"] = self.get_port() |
| 1012 | tmp['status'] = self.get_server(domain, domain) |
| 1013 | tmp['conf'] = public.readFile(tmp_path) |
| 1014 | tmp['jdk_path'] = self.get_jdk_path(domain, True) |
| 1015 | # tmp['log'] = public.GetNumLines('%s/%s/logs/catalina-daemon.out'%(self.__site_path,domain), 3000) |
| 1016 | tmp["tomcat_server"] = tmp_path |
| 1017 | tmp['tomcat_start'] = self.__site_path + '' + domain + '/bin/daemon.sh' |
| 1018 | tmp['stype'] = 'built' |
| 1019 | else: |
| 1020 | tmp['status'] = False |
| 1021 | tmp["port"] = False |
| 1022 | tmp['conf'] = False |
| 1023 | tmp['jdk'] = False |
| 1024 | tmp['log'] = False |
| 1025 | tmp['jdk_path'] = False |
| 1026 | tmp['stype'] = 'uninstall' |
| 1027 | return tmp |
| 1028 | |
| 1029 | def exists_nginx_ssl(self, project_name): |
| 1030 | ''' |
no test coverage detected