File tree 1 file changed +4
-18
lines changed
1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 12
12
13
13
use strict;
14
14
use lib ' /data/wre/lib' ;
15
- use Carp qw( carp croak) ;
16
15
use WRE::Config;
17
16
use WRE::File;
18
-
19
17
use WRE::Host;
20
- use WRE::Starman;
21
- use WRE::Nginx;
22
- use WRE::Mysql;
23
- use WRE::Site;
24
- use WRE::Spectre;
25
18
use Getopt::Long ();
26
19
use Pod::Usage ();
27
20
37
30
# server daemon
38
31
my $wreConfig = WRE::Config-> new;
39
32
my $host = WRE::Host-> new(wreConfig => $wreConfig );
33
+ my $file = WRE::File-> new(wreConfig => $wreConfig );
40
34
41
- my $file = WRE::File-> new(wreConfig => $config );
42
-
43
- if ($config -> get(" demo/enabled" ) == 0 && $cgi -> param(" enableDemo" ) == 1) {
44
- $file -> makePath($config -> getDomainRoot(" /demo" ));
45
- $file -> copy($config -> getRoot(" /var/setupfiles/demo.nginx" ), $config -> getRoot(" /etc/demo.nginx" ),
46
- { force => 1, templateVars => { sitename => $config -> get(" demo/hostname" ) } });
47
- }
35
+ $file -> makePath($config -> getDomainRoot(" /demo" ));
36
+ $file -> copy($config -> getRoot(" /var/setupfiles/demo.nginx" ), $config -> getRoot(" /etc/demo.nginx" ),
37
+ { force => 1, templateVars => { sitename => $config -> get(" demo/hostname" ) } });
48
38
$file -> copy($config -> getRoot(" /var/setupfiles/nginx.conf" ),
49
39
$config -> getRoot(" /etc/nginx.conf" ),
50
40
{ force => 1, templateVars => {osName => $host -> getOsName} });
@@ -78,10 +68,6 @@ =head1 DESCRIPTION
78
68
79
69
=over
80
70
81
- =item B<--configFile >
82
-
83
- The full path to a WRE configuration file.
84
-
85
71
=item B<--help >
86
72
87
73
Shows this documentation and then exits.
You can’t perform that action at this time.
0 commit comments