refactor web start scripts to be more portable
This commit is contained in:
@@ -7,7 +7,7 @@ use 5.010_000;
|
||||
use File::ShareDir 'dist_dir';
|
||||
use Path::Class;
|
||||
|
||||
our $VERSION = '2.005000_002';
|
||||
our $VERSION = '2.005000_003';
|
||||
|
||||
BEGIN {
|
||||
if (not length ($ENV{DANCER_APPDIR} || '')
|
||||
|
||||
@@ -15,11 +15,6 @@ use App::Netdisco::Web::Device;
|
||||
use App::Netdisco::Web::TypeAhead;
|
||||
use App::Netdisco::Web::PortControl;
|
||||
|
||||
# need to set at runtime the sessions dir in user home
|
||||
# because YAML config (session_dir) cannot interpolate $ENV{HOME}
|
||||
use Path::Class 'dir';
|
||||
set('session_dir', dir($ENV{HOME}, 'netdisco-web-sessions'));
|
||||
|
||||
sub _load_web_plugins {
|
||||
my $plugin_list = shift;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user