Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql.ini should be removed on Debian, as it is on Ubuntu #584

Open
thatgraemeguy opened this issue Jul 6, 2020 · 2 comments
Open

mysql.ini should be removed on Debian, as it is on Ubuntu #584

thatgraemeguy opened this issue Jul 6, 2020 · 2 comments

Comments

@thatgraemeguy
Copy link

if $facts['os']['name'] == 'Ubuntu' and $zend != true and $name == 'mysql' {

The above code which applies to Ubuntu must also apply to Debian, which also does not need mysql.ini.

@Elbandi
Copy link

Elbandi commented Nov 26, 2020

You can install php 5.6 from sury repo (https://launchpad.net/~ondrej/+archive/ubuntu/php) on ubuntu. So the mysql ext sould be handled from php global version

@mdklapwijk
Copy link

mdklapwijk commented Mar 16, 2022

this fixed it for me:

...
  if $facts['os']['name'] =~ /(Debian|Ubuntu)/ and $zend != true and $name == 'mysql' {
    # Do not manage the .ini file if it's mysql.  PHP 7.0+ do not have
    # mysql.so.  If mysql.ini exists and version is 7.0+, then remove it.
    $real_ensure = 'absent'
  } else {
    $real_ensure = $ensure
  }
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants