more config stuff
This commit is contained in:
@@ -8,8 +8,10 @@ try:
|
||||
except ImportError:
|
||||
_has_journald = False
|
||||
|
||||
|
||||
logfile = '/var/log/tunnelbroker_manager.log'
|
||||
if os.geteuid() == 0:
|
||||
logfile = '/var/log/tunnelbroker_manager.log'
|
||||
else:
|
||||
logfile = '~/.cache/tunnelbroker_manager.log'
|
||||
# Prep the log file.
|
||||
logfile = os.path.abspath(os.path.expanduser(logfile))
|
||||
os.makedirs(os.path.dirname(logfile), exist_ok = True, mode = 0o0700)
|
||||
|
||||
Reference in New Issue
Block a user