DocCyblade / tkl-mayan-edms

Turnkey Linux - Mayan EDMS
https://www.turnkeylinux.org/mayan-edms
Other
4 stars 12 forks source link

Database file is missing #25

Closed DocCyblade closed 7 years ago

DocCyblade commented 7 years ago

File that holds database settings is missing

DocCyblade commented 7 years ago

Defaulting to use sql light

DocCyblade commented 7 years ago

Looks like the db template file is getting set but the local.py is getting overwritten maybe.

DocCyblade commented 7 years ago

cat $APP_DB_TEMPLATE >> APP_SETTINGS needs to be after mayan-edms.py initialsetup -v 3

however, if we are going to set demo data, we may need to do this with a first boot init script anyway to recreate the password.

Need to also run mayan-edms.py createsettings before cat $APP_DB_TEMPLATE >> APP_SETTINGS

Should look like this:


# Create initial settings
mayan-edms.py createsettings

# Apply the db template
cat $APP_DB_TEMPLATE >> APP_SETTINGS

# Migrate the database or initialize the project
# TODO: If using a database with pre-config may want to
# change this step to import database
mayan-edms.py initialsetup -v 3
DocCyblade commented 7 years ago

Fixed