Skip to content

Commit

Permalink
Add demo server setup to wresetup.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Feb 8, 2012
1 parent 9a490da commit c47c592
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wre/sbin/wresetup.pl
Expand Up @@ -57,6 +57,13 @@
{ 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 c47c592

Please sign in to comment.