summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-25 16:37:36 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-25 16:37:36 +0000
commit615b19fde6a4747524a7f5d9ea7241f0f1c2db2e (patch)
tree2c054a9c330086754fa480035de6d145999c0734
parent6de6d8a7cd52e6af3ee465cf5cdd15a3bfee942b (diff)
downloaddrakx-backup-do-not-use-615b19fde6a4747524a7f5d9ea7241f0f1c2db2e.tar
drakx-backup-do-not-use-615b19fde6a4747524a7f5d9ea7241f0f1c2db2e.tar.gz
drakx-backup-do-not-use-615b19fde6a4747524a7f5d9ea7241f0f1c2db2e.tar.bz2
drakx-backup-do-not-use-615b19fde6a4747524a7f5d9ea7241f0f1c2db2e.tar.xz
drakx-backup-do-not-use-615b19fde6a4747524a7f5d9ea7241f0f1c2db2e.zip
perl_checker cleanups
-rw-r--r--perl-install/services.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index 1210077b1..99172f78e 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -305,12 +305,12 @@ sub _set_service {
if (member($service, @xinetd_services)) {
run_program::rooted($::prefix, "chkconfig", $enable ? "--add" : "--del", $service);
- } elsif (running_systemd() or has_systemd()) {
+ } elsif (running_systemd() || has_systemd()) {
# systemctl rejects any symlinked units. You have to enabled the real file
if (-l "/lib/systemd/system/$service.service") {
$service = basename(readlink("/lib/systemd/system/$service.service"));
} else {
- $service = $service.".service";
+ $service = $service . ".service";
}
run_program::rooted($::prefix, "/bin/systemctl", $enable ? "enable" : "disable", $service);
} else {