aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-08-29 23:09:10 +0200
committerAngelo Naselli <anaselli@linux.it>2014-08-29 23:09:10 +0200
commit7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb (patch)
tree49d7b1231b7eeb87a83b229084631b6773d53d82 /scripts
parent28dbac079d14ccc88fcc164f7a2e691df867c6a1 (diff)
downloadcolin-keep-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar
colin-keep-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar.gz
colin-keep-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar.bz2
colin-keep-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.tar.xz
colin-keep-7d8e3ff2d4d9f6671c7975488a8c1a00ed4e79bb.zip
- fixed reading configuration position if --name is given
- changed title to Mageia Panel
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 813c170..75606e6 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";