@@ -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 >> {}
|
||||||
|
|||||||
Reference in New Issue
Block a user