Commit 396df303 authored by Florent Daigniere's avatar Florent Daigniere Committed by mergify-bot
Browse files

Use os.makedirs instead

(cherry picked from commit 193d835abeb91928a8c59cbf1345056c4f32b4c1)
parent 9475bd44
......@@ -15,8 +15,7 @@ log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
def start_podop():
os.setuid(getpwnam('postfix').pw_uid)
if not os.path.exists('/dev/shm/postfix'):
os.mkdir('/dev/shm/postfix',mode=0o700)
os.makedirs('/dev/shm/postfix',mode=0o700, exist_ok=True)
url = "http://" + os.environ["ADMIN_ADDRESS"] + "/internal/postfix/"
# TODO: Remove verbosity setting from Podop?
run_server(0, "postfix", "/tmp/podop.socket", [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment