vagrant: Drop unnecessary script that deletes sqlite file

We no longer store sqlite3 file the current directory when running --develop
mode. We always store it in /var/lib/plinth/plinth.sqlite3.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2023-02-04 16:35:50 -08:00 committed by James Valleroy
parent 24d2401e24
commit b013d010a4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 0 additions and 20 deletions

6
Vagrantfile vendored
View File

@ -54,11 +54,5 @@ an invalid SSL certificate).
path: "vagrant-scripts/plinth-user-permissions.py"
}
end
config.trigger.before :destroy do |trigger|
trigger.warn = "Performing cleanup steps"
trigger.run = {
path: "vagrant-scripts/post-box-destroy.py"
}
end
config.vm.boot_timeout=1200
end

View File

@ -1,14 +0,0 @@
#!/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