OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
353 stars 140 forks source link

setup.sh fails on Ubuntu 20.04 => mysql version not found #295

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello,

regarding these lines of code: https://github.com/OCSInventory-NG/OCSInventory-Server/blob/824000f873071b32e24b4ede7427d0673a594d6d/setup.sh#L152-L153

on Ubuntu 20.04, -f6 has to be changed to -f4:

mysql -V | cut -d' ' -f4 | cut -d'.' -f1
mysql -V | cut -d' ' -f4 | cut -d'.' -f2

Please anyone confirm?!

Thanks

ghost commented 3 years ago

Sorry, just noticed it's fixed on master:

with commit 82e7b665f36b03eac8ab175822952cf0232c1632

gillesdubois commented 3 years ago

Hi @schrodinger72 ,

No problems, you might be using an old version because this fix has been integrated in the 2.8 / 2.8.1 available here : https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/tag/2.8.1

Have a nice day !

Gilles.