mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
vagrant: Destroy Plinth development database when box is destroyed
Fixes #1424 Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
fe74555811
commit
56ee33793e
6
Vagrantfile
vendored
6
Vagrantfile
vendored
@ -47,4 +47,10 @@ $ sudo /vagrant/run --develop
|
|||||||
Plinth will be available at https://localhost:4430/plinth (with
|
Plinth will be available at https://localhost:4430/plinth (with
|
||||||
an invalid SSL certificate).
|
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
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user