Skip to content
Permalink
Browse files

demo code goes in wredemosetup.pl, not wresetup.pl

  • Loading branch information...
perlDreamer committed Feb 8, 2012
1 parent c47c592 commit 841a6923bd47f4905c723f1b9753aaebfd14512a
Showing with 1 addition and 8 deletions.
  1. +1 −1 wre/sbin/wredemosetup.pl
  2. +0 −7 wre/sbin/wresetup.pl
@@ -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";
@@ -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")

0 comments on commit 841a692

Please sign in to comment.
You can’t perform that action at this time.