aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-26 18:27:51 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-26 18:27:51 +0100
commitb574983cb7f02ceedff0999b7e2f2c51a7cc3859 (patch)
tree35b18849b4f55e425eaa3742b08b5e15227bafa6 /lib
parent6acbba056683912d5518bdc51f5f25c4d14fbfe3 (diff)
downloadcolin-keep-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar
colin-keep-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar.gz
colin-keep-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar.bz2
colin-keep-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar.xz
colin-keep-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.zip
Substitute all the chars
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/Shared/Services.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AdminPanel/Shared/Services.pm b/lib/AdminPanel/Shared/Services.pm
index 809bc21..91284ef 100644
--- a/lib/AdminPanel/Shared/Services.pm
+++ b/lib/AdminPanel/Shared/Services.pm
@@ -932,8 +932,8 @@ sub getUnitProperty {
my ($self, $unit, $property) = @_;
my $name = $unit . ".service";
- $name =~ s|-|_2d|;
- $name =~ s|\.|_2e|;
+ $name =~ s|-|_2d|g;
+ $name =~ s|\.|_2e|g;
my $service = $self->dbus_systemd1_service;
my $unit_object = $service->get_object("/org/freedesktop/systemd1/unit/" . $name);
my $property_value = eval {$unit_object->Get("org.freedesktop.systemd1.Unit", $property)} || "";