Browse Source

Better and tested fix to permission problem

Alessandro De Gennaro 4 years ago
parent
commit
ba50d65dd4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lcmlog-server

+ 2 - 2
lcmlog-server

@@ -33,8 +33,6 @@ logger.addHandler(file_handler)
 #    subprocess.call(["touch", DIR + "/logs/logfile"])
 #    #subprocess.call(["chmod", "444", DIR + "/logs/*"])
 #    subprocess.call(["chmod", "666", DIR + "/logs/logfile"])
-subprocess.call(["touch", DIR + "/logs/logfile"])
-subprocess.call(["chmod", "666", DIR + "/logs/logfile"])
 
 
 #------------------------------------------------------------------------------
@@ -303,3 +301,5 @@ class MethodError(Exception):
 # Starting point
 if __name__ == "__main__":
 	main()
+        # Change permissions to logfile just before leaving. Dirty fix to a not well understood problem
+        subprocess.call(["chmod", "666", DIR + "/logs/logfile"])