zammad / zammad

Zammad is a web based open source helpdesk/customer support system

Home Page:https://zammad.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

contrib/packager.io/preinstall.sh does not check the db adapter setting and fails if both psql and mysql are installed

jr-timme opened this issue · comments

Used Zammad Version

6.3

Environment

  • Installation method: deb package
  • Operating system (if you're unsure: cat /etc/os-release ): Debian 12 Bookworm
  • Database + version: MariaDB 10.11
  • Elasticsearch version: 7.10
  • Browser + version: n/a

Actual behaviour

When running Zammad with Mysql and also having psql installed on the same system the preinstall.sh script fails as it tries to connect to a non existing postgresql database

Expected behaviour

the script should also check the adapter setting in the database.yml and use the correct utility to check the availability of the database

Steps to reproduce the behaviour

  • Install Zammad with MySQL/MariaDB
  • Install psql-client on the same Server
  • try to upgrade through the debian packages

Support Ticket

No response

I'm sure this is a bug and no feature request or a general question.

yes