Fix: replace mkdir with chmod

In original patches, extra mkdir has been added instead of chmod.

https://fedorahosted.org/freeipa/ticket/5520

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Martin Basti
2015-12-22 16:40:45 +01:00
parent 8ad39a974f
commit 403652b5b9
+1 -1
View File
@@ -420,7 +420,7 @@ class SystemdService(PlatformService):
try:
if not ipautil.dir_exists(srv_tgt):
os.mkdir(srv_tgt)
os.mkdir(srv_tgt, 0o755)
os.chmod(srv_tgt, 0o755)
if os.path.exists(srv_lnk):
# Remove old link
os.unlink(srv_lnk)