Skip to content

Commit d9dadd3

Browse files
Vitexusoz-agent
andcommitted
fix: install .env.template and make DB_DATABASE backend-agnostic
- Added missing .env.template to csas-authorize.install so dbc_go can generate the env file and create the database - Changed DB_DATABASE from hardcoded sqlite path to _DBC_DBNAME_ so the template works for both SQLite and MySQL backends - The phinx-adapter.php already constructs the full SQLite path Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent de460df commit d9dadd3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

debian/conf/.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ APP_DEBUG=false
22
DB_CONNECTION=_DBC_DBTYPE_
33
DB_HOST=_DBC_DBSERVER_
44
DB_PORT=_DBC_DBPORT_
5-
DB_DATABASE=/var/lib/dbconfig-common/sqlite3/csas-authorize/_DBC_DBNAME_
5+
DB_DATABASE=_DBC_DBNAME_
66
DB_USERNAME=_DBC_DBUSER_
77
DB_PASSWORD=_DBC_DBPASS_

debian/csas-authorize.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ src/images/* usr/share/csas-authorize/images
55
db/migrations/* usr/lib/csas-authorize/db/migrations
66
#db/seeds/* usr/lib/csas-authorize/db/seeds
77
libexec/*.php usr/libexec/csas-authorize
8+
debian/conf/.env.template usr/lib/csas-authorize
89
debian/conf/phinx-adapter.php usr/lib/csas-authorize
910

1011

0 commit comments

Comments
 (0)