From a600614ba36e192b168fcb4f9547c70fdc304707 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 22 Dec 2015 16:34:32 +0100 Subject: [PATCH] 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 --- ipaplatform/base/services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipaplatform/base/services.py b/ipaplatform/base/services.py index b068a2f3b00549fffa20feffb6a3158382fc7e9a..d280557c4f1c8ba353ba093736d577cc6c2a47a9 100644 --- a/ipaplatform/base/services.py +++ b/ipaplatform/base/services.py @@ -421,7 +421,8 @@ class SystemdService(PlatformService): try: if not ipautil.dir_exists(srv_tgt): - os.mkdir(srv_tgt, 0755) + os.mkdir(srv_tgt) + os.chmod(srv_tgt, 0755) if os.path.exists(srv_lnk): # Remove old link os.unlink(srv_lnk) -- 2.4.3