Re: [pve-devel] [PATCH pve-manager 1/3] When running with extjs=1, construct the includes lists based on manager6 dir content

2016-01-26 Thread Emmanuel Kasper
On 01/25/2016 05:38 PM, Dietmar Maurer wrote: >> @@ -6,6 +9,13 @@ use warnings; >> sub get_index { >> my ($lang, $username, $csrftoken, $console) = @_; >> >> +my $manager_source_dir = '/usr/share/pve-manager/manager6/'; >> + >> +## exit early to avoid this being run by mistake >>

Re: [pve-devel] [PATCH pve-manager 1/3] When running with extjs=1, construct the includes lists based on manager6 dir content

2016-01-25 Thread Dietmar Maurer
> @@ -6,6 +9,13 @@ use warnings; > sub get_index { > my ($lang, $username, $csrftoken, $console) = @_; > > +my $manager_source_dir = '/usr/share/pve-manager/manager6/'; > + > +## exit early to avoid this being run by mistake > +if ( ! -d $manager_source_dir) { > + return "$m

[pve-devel] [PATCH pve-manager 1/3] When running with extjs=1, construct the includes lists based on manager6 dir content

2016-01-25 Thread Emmanuel Kasper
This way, we don't have to manage manually the list files and let the FS do it. For development purpose only. --- PVE/ExtJSIndex6.pm | 424 - 1 file changed, 223 insertions(+), 201 deletions(-) diff --git a/PVE/ExtJSIndex6.pm b/PVE/ExtJSIndex6.p