mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
24d2401e24
commit
b013d010a4
6
Vagrantfile
vendored
6
Vagrantfile
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user