summaryrefslogtreecommitdiffstats
path: root/client_wizard
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 17:09:15 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 17:09:15 +0000
commit27a8e524914e6837b6088c2d29e6a0d186d17ce3 (patch)
treee02cdd272e31d5aeb3dacf2d49a306ca96786884 /client_wizard
parent6fcca62e9e80e8a14d410b361c7593a02b4e96ed (diff)
downloaddrakwizard-27a8e524914e6837b6088c2d29e6a0d186d17ce3.tar
drakwizard-27a8e524914e6837b6088c2d29e6a0d186d17ce3.tar.gz
drakwizard-27a8e524914e6837b6088c2d29e6a0d186d17ce3.tar.bz2
drakwizard-27a8e524914e6837b6088c2d29e6a0d186d17ce3.tar.xz
drakwizard-27a8e524914e6837b6088c2d29e6a0d186d17ce3.zip
perl_checker cleanups
Diffstat (limited to 'client_wizard')
-rwxr-xr-xclient_wizard/Bind_client.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/client_wizard/Bind_client.pm b/client_wizard/Bind_client.pm
index 396260e2..fc3ddc2a 100755
--- a/client_wizard/Bind_client.pm
+++ b/client_wizard/Bind_client.pm
@@ -44,9 +44,9 @@ my $o = {
defaultimage => "$ENV{__WIZ_HOME__}client_wizard/images/DNS.png",
init => sub {
if (! -f "/var/named/$wiz_domain_name.db") {
- return (0, N("You must first run the DNS server wizard"))
+ return (0, N("You must first run the DNS server wizard"));
}
- 1
+ 1;
}
};
@@ -163,7 +163,7 @@ sub do_it {
my $file="/var/named/$wiz_domain_name.db";
my $client_name = $o->{var}{client_name};
$client_name =~ s/\.$wiz_domain_name$//;
- MDK::Common::cp_af($file, $file.".orig");
+ MDK::Common::cp_af($file, $file . ".orig");
local *NEW;
open(NEW, ">> $file") or die "can not open $file";
print NEW "\n$client_name IN A $o->{var}{client_ip} ; $date\n\n";
@@ -171,15 +171,15 @@ sub do_it {
up_serial($file);
$file="/var/named/$s_trunc.rev";
- MDK::Common::cp_af($file, $file.".orig");
+ MDK::Common::cp_af($file, $file . ".orig");
open(NEW, ">> $file") or die "can not open $file";
print NEW "\n$dc IN PTR $o->{var}{client_name}. ; $date\n\n";
close(NEW) or die "can not close $file";
up_serial($file);
if (services::is_service_running('named')) {
- services::restart('named')
+ services::restart('named');
} else {
- services::start('named')
+ services::start('named');
}
}