chmod SYSTEMD_PKI_TOMCAT_IPA_CONF

Change the permission of the new config file
/etc/systemd/system/pki-tomcatd@pki-tomcat.service.d/ipa.conf to 644.
This fixes the systemd warning

Configuration file /etc/systemd/system/pki-tomcatd@pki-tomcat.service.d/ipa.conf is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes 2019-04-24 18:39:15 +02:00
parent d7e17655c7
commit a22b4a35f2

View File

@ -613,6 +613,7 @@ class CAInstance(DogtagInstance):
if not os.path.isdir(directory):
os.mkdir(directory)
with open(conf, 'w') as f:
os.fchmod(f.fileno(), 0o644)
f.write('[Service]\n')
f.write('ExecStartPost={}\n'.format(paths.IPA_PKI_WAIT_RUNNING))
tasks.systemd_daemon_reload()