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
>>
> @@ -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
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