updated regexp

fix #312
This commit is contained in:
Antoine Nguyen
2023-01-13 12:12:48 +01:00
parent 7877de1abc
commit 0fc15fc024

View File

@@ -57,7 +57,7 @@ class Clamav(base.Installer):
# Check if not present before # Check if not present before
path = "/usr/lib/systemd/system/clamd@.service" path = "/usr/lib/systemd/system/clamd@.service"
code, output = utils.exec_cmd( code, output = utils.exec_cmd(
"grep 'WantedBy=multi-user.target' {}".format(path)) r"grep 'WantedBy\s*=\s*multi-user.target' {}".format(path))
if code: if code:
utils.exec_cmd( utils.exec_cmd(
"""cat <<EOM >> {} """cat <<EOM >> {}