diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-08-29 23:09:10 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-08-29 23:09:10 +0200 |
commit | 7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb (patch) | |
tree | 49d7b1231b7eeb87a83b229084631b6773d53d82 /scripts | |
parent | 28dbac079d14ccc88fcc164f7a2e691df867c6a1 (diff) | |
download | manatools-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar manatools-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar.gz manatools-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar.bz2 manatools-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar.xz manatools-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.zip |
- fixed reading configuration position if --name is given
- changed title to Mageia Panel
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/apanel.pl | 12 |
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"; |