container: Remove sqlite3 file early enough

During --list-dependencies if an old sqlite3 file is present with gitweb
enabled, then a2enconf -c gitweb-freedombox-auth get executed. In this case,
setting up apache2 module fails because authpubtkt tokens are not yet generated
but they are being referred to in the configuration files.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-06-22 22:34:40 -07:00 committed by Veiko Aasa
parent a988828f73
commit 7f7f4cfb52
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -138,6 +138,9 @@ KEY_SERVER = 'keys.gnupg.net'
PROVISION_SCRIPT = '''
set -x
# Remove FreedomBox database lingering in source directory to start fresh
sudo rm -f /freedombox/data/var/lib/plinth/plinth.sqlite3
cd /freedombox/
sudo apt-get update
@ -158,9 +161,6 @@ sudo apt-mark unhold freedombox
# Install ncurses-term
sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes ncurses-term
# Remove FreedomBox database lingering in source directory to start fresh
sudo rm -f /freedombox/data/var/lib/plinth/plinth.sqlite3
echo 'alias freedombox-develop="sudo -u plinth /freedombox/run --develop"' \
>> /home/fbx/.bashrc
'''