aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/apanel.pl12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/apanel.pl b/scripts/apanel.pl
index 813c1701..75606e60 100755
--- a/scripts/apanel.pl
+++ b/scripts/apanel.pl
@@ -75,13 +75,19 @@ sub usage {
# adpanel settings
sub getSettings {
my ($self) = @_;
+
+ my $confDir = "/etc/mpan";
# yui commandline parser
my $pos = $cmdline->find("--conf_dir");
- my $confDir = "/etc/apanel";
if($pos > 0){
$confDir = $cmdline->arg($pos + 1);
- }else{
- $confDir = "/etc/apanel";
+ }
+ else {
+ $pos = $cmdline->find("--name");
+ if ($pos > 0)
+ {
+ $confDir = "/etc/" . $cmdline->arg($pos+1);
+ }
}
# configuration file name
my $fileName = "$confDir/settings.conf";