From b013d010a463dec01fb4d0f7cede01f3ab366d93 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 4 Feb 2023 16:35:50 -0800 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- Vagrantfile | 6 ------ vagrant-scripts/post-box-destroy.py | 14 -------------- 2 files changed, 20 deletions(-) delete mode 100755 vagrant-scripts/post-box-destroy.py diff --git a/Vagrantfile b/Vagrantfile index 194e1c49b..952d57157 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 diff --git a/vagrant-scripts/post-box-destroy.py b/vagrant-scripts/post-box-destroy.py deleted file mode 100755 index ada4c2946..000000000 --- a/vagrant-scripts/post-box-destroy.py +++ /dev/null @@ -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