mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
vagrant: Cleanup for obsolete log files
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
f1d475bb4e
commit
da08b8bd02
@ -27,11 +27,3 @@ try:
|
|||||||
os.remove('data/var/lib/plinth/plinth.sqlite3')
|
os.remove('data/var/lib/plinth/plinth.sqlite3')
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Truncate status.log
|
|
||||||
with open('data/var/log/plinth/status.log', 'w') as status_log:
|
|
||||||
status_log.truncate()
|
|
||||||
|
|
||||||
# Truncate access.log
|
|
||||||
with open('data/var/log/plinth/access.log', 'w') as access_log:
|
|
||||||
access_log.truncate()
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user