Skip to content

Commit c31ad58

Browse files
Vitexusclaude
andcommitted
fix: skip phinx migration when env file is absent
Without /etc/csas-authorize/csas-authorize.env the DB_CONNECTION config is empty, causing phinx to fail with "Unimplemented Database type". Only run migrations when the env file exists (i.e. database is configured). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 18a28ce commit c31ad58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

debian/csas-authorize.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66
. /usr/share/debconf/confmodule
77

88

9-
if [ -f /usr/share/dbconfig-common/dpkg/postinst ]; then
9+
if [ -f /usr/share/dbconfig-common/dpkg/postinst ] && [ -f /etc/csas-authorize/csas-authorize.env ]; then
1010

1111
phinx migrate -c /usr/lib/csas-authorize/phinx-adapter.php
1212

0 commit comments

Comments
 (0)