Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
demo code goes in wredemosetup.pl, not wresetup.pl
  • Loading branch information
perlDreamer committed Feb 8, 2012
1 parent c47c592 commit 841a692
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion wre/sbin/wredemosetup.pl
Expand Up @@ -38,7 +38,7 @@
say "Setting up demo files";
$file->makePath($config->getDomainRoot("/demo"));
$file->copy($config->getRoot("/var/setupfiles/demo.nginx"), $config->getRoot("/etc/demo.nginx"),
{ force => 1, templateVars=>{ sitename=>$config->get("demo/hostname") } });
{ force => 1, processTemplate => 1, );
}
else {
say "Skipping demo files";
Expand Down
7 changes: 0 additions & 7 deletions wre/sbin/wresetup.pl
Expand Up @@ -57,13 +57,6 @@
{ force => 1 });
$file->changeOwner($config->getWebguiRoot("/etc"));

if ($config->get('demo/enabled') {
say "Setting up demo server";
$file->copy($config->getRoot("/var/setupfiles/demo.nginx"),
$config->getRoot("/etc/demo.nginx"),
{ force => 1, processTemplate => 1, });
}

say "Setting up WebGUI logging";
eval {
open my $in, '<', $config->getWebguiRoot("/etc/log.conf.original")
Expand Down

0 comments on commit 841a692

Please sign in to comment.