summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/services.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index a2b8e5139..203e4154b 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -295,12 +295,12 @@ sub ask {
sub _set_service {
my ($service, $enable) = @_;
- if ( -f "/lib/systemd/system/$service.service" ) {
- if ( -l "/lib/systemd/system/$service.service" ) {
- $service = basename(readlink("/lib/systemd/system/$service.service"))
+ if (-f "/lib/systemd/system/$service.service") {
+ 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, "systemctl", $enable ? "enable" : "disable", $service);
}