Skip to content
Snippets Groups Projects
Select Git revision
  • 17f9a7293c50c4f369f74bc44b605546cac0e276
  • main default protected
  • v0.1
3 results

inc_functions.php

Blame
  • detect-mysql 569 B
    # ----------------------------------------------------------------------------
    # 
    # EOL - End of life detection - Warn before reaching end of life
    #
    # detect version of MARIADB
    #
    # ----------------------------------------------------------------------------
    # 2020-02-25  v1.0  <axel.hahn@iml.unibe.ch>
    # ----------------------------------------------------------------------------
    
    # ----- example output
    #   mysql --version
    #   mysql  Ver 14.14 Distrib 5.5.62, for debian-linux-gnu (x86_64) using readline 6.3
    
    mysql --version | awk '{ print $5 }' | cut -f 1,2 -d '.'