Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117764243
D86.1775222669.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
951 B
Referenced Files
None
Subscribers
None
D86.1775222669.diff
View Options
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -442,6 +442,20 @@
myaugeas.save()
myaugeas.close()
+ if os.path.isfile('/usr/lib/systemd/system/clamd@.service'):
+ from ConfigParser import SafeConfigParser
+ unitfile = SafeConfigParser()
+ unitfile.optionxform = str
+ unitfile.read('/usr/lib/systemd/system/clamd@.service')
+ if not unitfile.has_section('Install'):
+ unitfile.add_section('Install')
+
+ if not unitfile.has_option('Install', 'WantedBy'):
+ unitfile.set('Install', 'WantedBy', 'multi-user.target')
+
+ with open('/etc/systemd/system/clamd@.service', 'wb') as f:
+ unitfile.write(f)
+
amavisservice = 'amavisd.service'
clamavservice = 'clamd@amavisd.service'
if os.path.isfile('/usr/lib/systemd/system/amavis.service'):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 1:24 PM (10 h, 18 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18824215
Default Alt Text
D86.1775222669.diff (951 B)
Attached To
Mode
D86: Fix the systemd unit file for clamd@.service if needed
Attached
Detach File
Event Timeline