diff options
author | Matteo Pasotti <matteo.pasotti@gmail.com> | 2014-02-09 01:20:50 +0100 |
---|---|---|
committer | Matteo Pasotti <matteo.pasotti@gmail.com> | 2014-02-09 01:20:50 +0100 |
commit | 98c6ad3a11f860290f9f8aa2effd7e10f46f71cf (patch) | |
tree | 6a1023d269aa605b355041d8ce2c6bb2771845f2 /scripts | |
parent | 6ce1fa14cae87c1711ea04f420ccc12633e187d0 (diff) | |
download | colin-keep-98c6ad3a11f860290f9f8aa2effd7e10f46f71cf.tar colin-keep-98c6ad3a11f860290f9f8aa2effd7e10f46f71cf.tar.gz colin-keep-98c6ad3a11f860290f9f8aa2effd7e10f46f71cf.tar.bz2 colin-keep-98c6ad3a11f860290f9f8aa2effd7e10f46f71cf.tar.xz colin-keep-98c6ad3a11f860290f9f8aa2effd7e10f46f71cf.zip |
added development mode option support (skip auth using --dev arg)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/apanel.pl | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/apanel.pl b/scripts/apanel.pl index 750f3f1..ca8834c 100755 --- a/scripts/apanel.pl +++ b/scripts/apanel.pl @@ -23,8 +23,6 @@ use strict; use warnings; use diagnostics; use AdminPanel::Privileges; -use FindBin; -use lib "$FindBin::RealBin"; use AdminPanel::SettingsReader; use AdminPanel::MainDisplay; use yui; @@ -35,9 +33,15 @@ usage() if($cmdline->find("--help") > 0 || $cmdline->find("-h") > 0); my $settings = getSettings(); -ask_for_authentication($settings->{priv_method}) if(require_root_capability()); - - my $mainWin = new AdminPanel::MainDisplay(); +if($cmdline->find("--dev") > 0) +{ + print "== Development mode ON\n"; +} +else +{ + ask_for_authentication($settings->{priv_method}) if(require_root_capability()); +} +my $mainWin = new AdminPanel::MainDisplay(); while (1) { my $launch = $mainWin->start(); |