aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Shared
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/AdminPanel/Shared
parent6acbba056683912d5518bdc51f5f25c4d14fbfe3 (diff)
downloadmanatools-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar
manatools-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar.gz
manatools-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar.bz2
manatools-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.tar.xz
manatools-b574983cb7f02ceedff0999b7e2f2c51a7cc3859.zip
Substitute all the chars
Diffstat (limited to 'lib/AdminPanel/Shared')
-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 809bc217..91284efe 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)} || "";