mirror of
https://github.com/gryf/wicd.git
synced 2026-03-04 15:45:46 +01:00
moved wicd-daemon.py back to wicd/ and changed wpath replacement values to use the wpath module
This commit is contained in:
@@ -1671,13 +1671,13 @@ def main(argv):
|
|||||||
output = ManagedStdio(logpath)
|
output = ManagedStdio(logpath)
|
||||||
if os.path.exists(logpath):
|
if os.path.exists(logpath):
|
||||||
try:
|
try:
|
||||||
os.chmod(logpath, %LOGPERMS%)
|
os.chmod(logpath, wpath.logperms)
|
||||||
if "%LOGGROUP%":
|
if wpath.loggroup:
|
||||||
import grp
|
import grp
|
||||||
group = grp.getgrnam("%LOGGROUP%")
|
group = grp.getgrnam(wpath.loggroup)
|
||||||
os.chown(logpath, 0, group[2])
|
os.chown(logpath, 0, group[2])
|
||||||
except:
|
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_stdout: sys.stdout = output
|
||||||
if redirect_stderr: sys.stderr = output
|
if redirect_stderr: sys.stderr = output
|
||||||
Reference in New Issue
Block a user