This commit is contained in:
Peter Hormanns 2017-06-27 18:48:36 +02:00
parent 8aa875338c
commit b3b02a77d8

View File

@ -46,6 +46,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
} }
mainProcessor.appendProcessor(hiveName, createDomainDirectoriesProcessor(dom), "Setup Domain Directories"); mainProcessor.appendProcessor(hiveName, createDomainDirectoriesProcessor(dom), "Setup Domain Directories");
mainProcessor.appendProcessor(hiveName, createApacheVHostSetupProcessor(em, dom), "Setup Apache VHost"); mainProcessor.appendProcessor(hiveName, createApacheVHostSetupProcessor(em, dom), "Setup Apache VHost");
mainProcessor.appendProcessor(hiveName, createACMEBotProcessor(em, dom), "Setup ACMEBot");
return mainProcessor; return mainProcessor;
} }
@ -327,7 +328,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
} }
private Processor createACMEBotProcessor(final EntityManager em, final Domain dom) throws ProcessorException { private Processor createACMEBotProcessor(final EntityManager em, final Domain dom) throws ProcessorException {
final Query query = em.createQuery("SELECT d FROM Domains d WHERE d.domainoptions.name = :option AND d.user.pac.hive.name = :hiveName"); final Query query = em.createQuery("SELECT d FROM Domains d WHERE d.domainoptions.name = :option AND d.user.pac.hive.name = :hivename");
final String hiveName = dom.getHiveName(); final String hiveName = dom.getHiveName();
final Map<String, Object> templateVars = new HashMap<String, Object>(); final Map<String, Object> templateVars = new HashMap<String, Object>();
query.setParameter("hivename", hiveName); query.setParameter("hivename", hiveName);