refactor web start scripts to be more portable

This commit is contained in:
Oliver Gorwits
2013-03-04 00:19:18 +00:00
parent 8e9466b64f
commit d82fe1e2b0
5 changed files with 39 additions and 20 deletions

View File

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