Zutil changes
This commit is contained in:
parent
8532b681ca
commit
bb546ce046
1 changed files with 3 additions and 4 deletions
|
|
@ -5,7 +5,6 @@ import wa.server.WAContext;
|
|||
import wa.server.plugin.WAConfigEntry;
|
||||
import wa.server.plugin.WAServiceConfig;
|
||||
import wa.server.util.ConfigFileUtil;
|
||||
import zutil.db.DBConnection;
|
||||
import zutil.db.bean.DBBean;
|
||||
import zutil.db.bean.DBBean.DBTable;
|
||||
import zutil.io.IOUtil;
|
||||
|
|
@ -48,12 +47,12 @@ public class ApacheConfigVirtualHost implements WAServiceConfig{
|
|||
@Override
|
||||
public void configure() throws Exception {
|
||||
// Update main configuration file
|
||||
FileInputStream in = new FileInputStream(STATIC_PRE_CONF);
|
||||
ConfigFileUtil.writeBetweenBoundary(
|
||||
WAConstants.getConfigFile(APACHE_MAIN_CONFIG_FILE),
|
||||
"#",
|
||||
IOUtil.getContentAsString(
|
||||
new FileInputStream(STATIC_PRE_CONF)));
|
||||
|
||||
IOUtil.readContentAsString(in));
|
||||
in.close();
|
||||
// Write Vhost configuration
|
||||
for(ApacheVirtualHostEntry vhost : vhosts){
|
||||
vhost.configure();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue