1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-25 07:32:29 +01:00

moved wicd-daemon.py back to wicd/ and changed wpath replacement values to use the wpath module

This commit is contained in:
Adam Blackburn
2009-06-16 23:08:52 +08:00
parent 355a8bca1c
commit 0c1c6c107c

View File

@@ -1671,13 +1671,13 @@ def main(argv):
output = ManagedStdio(logpath)
if os.path.exists(logpath):
try:
os.chmod(logpath, %LOGPERMS%)
if "%LOGGROUP%":
os.chmod(logpath, wpath.logperms)
if wpath.loggroup:
import grp
group = grp.getgrnam("%LOGGROUP%")
group = grp.getgrnam(wpath.loggroup)
os.chown(logpath, 0, group[2])
except:
print 'unable to chmod log file to %LOGPERMS%'
print 'unable to chmod log file to %s' % wpath.logperms
if redirect_stdout: sys.stdout = output
if redirect_stderr: sys.stderr = output