projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fastcgi: Enable php and trac for chimara-if.org.
[matthijs/servers/drsnuggles.git]
/
usr
/
local
/
bin
/
update-stats
diff --git
a/usr/local/bin/update-stats
b/usr/local/bin/update-stats
index 7f3fb42429f941c3663e5afd293930894ed79d1f..2591ff4bf30874cada2f97f0cdcef90abe1a1b43 100755
(executable)
--- a/
usr/local/bin/update-stats
+++ b/
usr/local/bin/update-stats
@@
-140,6
+140,7
@@
if lighttpd_conf != f.read():
f.seek(0)
f.truncate()
f.write(lighttpd_conf)
f.seek(0)
f.truncate()
f.write(lighttpd_conf)
+ f.close()
# Reload lighttpd configuration
print "Reloading lighttpd: %s" % reload_lighttpd
# Reload lighttpd configuration
print "Reloading lighttpd: %s" % reload_lighttpd
@@
-148,8
+149,8
@@
if lighttpd_conf != f.read():
if ret != 0:
print >> sys.stderr, "Reloading lighttpd failed. Logging.conf was:"
print >> sys.stderr, lighttpd_conf
if ret != 0:
print >> sys.stderr, "Reloading lighttpd failed. Logging.conf was:"
print >> sys.stderr, lighttpd_conf
-
-f.close()
+else:
+
f.close()
# Now, run awstats to parse log files.
# Now, run awstats to parse log files.