Currently the database setup is run as root. This causes an error when Apache tries to write to the database as www-data. This change sets the user to www-data to setup the database and back to root to start the Apache service.
Alternatively you could chown or chmod the .sqlite file after running the setup. Up to you.
Currently the database setup is run as
root
. This causes an error when Apache tries to write to the database aswww-data
. This change sets the user towww-data
to setup the database and back toroot
to start the Apache service.Alternatively you could
chown
orchmod
the.sqlite
file after running the setup. Up to you.