FreedomBox/vagrant-scripts/post-box-destroy.py
Sunil Mohan Adapa 9368504da5
*.py: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:38:55 +02:00

15 lines
271 B
Python
Executable File

#!/usr/bin/python3
# -*- mode: python -*-
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Cleanup actions to be run when a vagrant box is destroyed.
"""
import os
# Drop Plinth database
try:
os.remove('data/var/lib/plinth/plinth.sqlite3')
except OSError:
pass