mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
a988828f73
commit
7f7f4cfb52
@ -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
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user