Commit 150a17cf authored by Pedro Oliveira's avatar Pedro Oliveira

Fix exception in case log folders already exist

parent 28b51ae5
......@@ -22,7 +22,7 @@ class Daemon:
sys.exit(1)
# decouple from parent environment
os.makedirs('/var/log/pimdm/')
os.makedirs('/var/log/pimdm/', exist_ok=True)
os.chdir('/var/log/pimdm/')
os.setsid()
os.umask(0)
......
......@@ -9,7 +9,7 @@ import os
import argparse
import traceback
VERSION = "1.0.4.1"
VERSION = "1.0.4.2"
def client_socket(data_to_send):
# Create a UDS socket
......
......@@ -13,7 +13,7 @@ setup(
long_description=open("README.md", "r").read(),
long_description_content_type="text/markdown",
keywords="PIM-DM Multicast Routing Protocol Dense-Mode Router RFC3973",
version="1.0.4.1",
version="1.0.4.2",
url="http://github.com/pedrofran12/pim_dm",
author="Pedro Oliveira",
author_email="pedro.francisco.oliveira@tecnico.ulisboa.pt",
......
Markdown is supported
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