From 56ee33793e26e224c5a53591be33f33cef76fc60 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 16 Nov 2018 06:22:14 +0530 Subject: [PATCH] vagrant: Destroy Plinth development database when box is destroyed Fixes #1424 Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- Vagrantfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 6ff15f40d..9d2cff802 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -47,4 +47,10 @@ $ sudo /vagrant/run --develop Plinth will be available at https://localhost:4430/plinth (with an invalid SSL certificate). " + config.trigger.before :destroy do |trigger| + trigger.warn = "Dropping Plinth database" + trigger.run_remote = { + inline: "rm /vagrant/data/var/lib/plinth/plinth.sqlite3" + } + end end